By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,168 Members | 2,548 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,168 IT Pros & Developers. It's quick & easy.

DataGridView Row

P: n/a
Hi

Has “DataGridView row limits?

I can't add about 1150 rows from XML file to DataGridView, it just "hangs"
Regards;
Mex
Nov 1 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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

"Meelis" <me*@hot.eeschreef in bericht
news:uv**************@TK2MSFTNGP04.phx.gbl...
Hi

Has “DataGridView row limits?

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


Nov 2 '06 #2

P: n/a

Haaa found the problem

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

Is this a bug?

Meelis

"Meelis" <me*@hot.eewrote in message
news:uv**************@TK2MSFTNGP04.phx.gbl...
Hi

Has “DataGridView row limits?

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


Nov 2 '06 #3

P: n/a
I hope this link says enough about what I think,

http://connect.microsoft.com/Main/co...ContentID=2220
:-)

Cor

"Meelis Lilbok" <me***********@deltmar.eeschreef in bericht
news:uy**************@TK2MSFTNGP02.phx.gbl...
>
Haaa found the problem

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

Is this a bug?

Meelis

"Meelis" <me*@hot.eewrote in message
news:uv**************@TK2MSFTNGP04.phx.gbl...
>Hi

Has “DataGridView row limits?

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



Nov 2 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.