Windows Forms datagrid won't show more than 255 rows.

  • Thread starter Thread starter Ken Dopierala Jr.
  • Start date Start date
K

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.
 
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
 
Are you sure that your bound source has more than 255 rows in it ?

OHM
 
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
 
* "Ken Dopierala Jr. said:
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?

"Post code!"
 
Back
Top