Windows Forms datagrid won't show more than 255 rows. by:Ken Dopierala Jr.
|
Hi,
I'm filling a datagrid from a dataset but only the first 255 rows in the dataset show up in the grid. Is there a 255 row limit on the datagrid? I've searched the properties but can't find anything that would limit it to 255. Is paging the only workaround? Thanks! Ken.
|
| | Reply: by:Cor Ligthert
|
| | Hi Ken,
I tried this.
\\ Dim dt As New DataTable Dim dc As New DataColumn dt.Columns.Add(dc) For i As Integer = 0 To 300 dt.Rows.Add(dt.NewRow) dt.Rows(i)(0) = i.ToString Next DataGrid1.DataSource = dt //
That gives a datagrid with 301 rows from 0 to 300.
I hope this helps anyway,
Cor
|
| | Reply: by:One Handed Man \( OHM#\)
|
| | Are you sure that your bound source has more than 255 rows in it ?
OHM
|
| | Reply: by:Cor Ligthert
|
| | Hi OHM,
Good to see you, Armin is also active again.
I am not that greath datagrid expert, however when he is always away, step by step I become that give me a hint?
Cor
|
| | Reply: by:hirf-spam-me-here@gmx.at (Herfried K. Wagner [MVP])
|
| | "Post code!"
-- Herfried K. Wagner [MVP] <URL:http://dotnet.mvps.org/>
|
0 Comments:
Post a Comment