DataGridView Row

  • Thread starter Thread starter Meelis
  • Start date Start date
M

Meelis

Hi

Has ´DataGridView row limits?

I can't add about 1150 rows from XML file to DataGridView, it just "hangs"


Regards;
Mex
 
Mex,

Not any problem here

\\\
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
Dim dg As New DataGridView
Dim dt As New DataTable
Dim dc As New DataColumn
dt.Columns.Add(dc)
For i As Integer = 1151 To 0 Step -1
dt.LoadDataRow(New Object() {i.ToString()}, True)
Next
dg.DataSource = dt
Me.Controls.Add(dg)
End Sub
End Class
///

I hope this helps,

Cor
 
Haaa found the problem

If you set DatagridView.RowHeadersWidthSizeMode=AutoSizeToAllHeaders then
setting DataGridView's Datasource hangs

Is this a bug?



Meelis
 
Back
Top