HighTechTalks DotNet Forums  

DataGridView Row

VB.net microsoft.public.dotnet.languages.vb


Discuss DataGridView Row in the VB.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Meelis
 
Posts: n/a

Default DataGridView Row - 11-01-2006 , 01:06 PM






Hi

Has ŽDataGridView row limits?

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


Regards;
Mex



Reply With Quote
  #2  
Old   
Cor Ligthert [MVP]
 
Posts: n/a

Default Re: DataGridView Row - 11-01-2006 , 10:53 PM






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" <mex (AT) hot (DOT) ee> schreef in bericht
news:uvgdaje$GHA.4024 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
Quote:
Hi

Has ŽDataGridView row limits?

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


Regards;
Mex





Reply With Quote
  #3  
Old   
Meelis Lilbok
 
Posts: n/a

Default Re: DataGridView Row - 11-02-2006 , 01:14 AM




Haaa found the problem

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

Is this a bug?



Meelis





"Meelis" <mex (AT) hot (DOT) ee> wrote

Quote:
Hi

Has ŽDataGridView row limits?

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


Regards;
Mex





Reply With Quote
  #4  
Old   
Cor Ligthert [MVP]
 
Posts: n/a

Default Re: DataGridView Row - 11-02-2006 , 01:07 PM



I hope this link says enough about what I think,

http://connect.microsoft.com/Main/content/content.aspx?ContentID=2220


:-)

Cor

"Meelis Lilbok" <meelis.lilbok (AT) deltmar (DOT) ee> schreef in bericht
news:uyiaG6k$GHA.3396 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
Quote:
Haaa found the problem

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

Is this a bug?



Meelis





"Meelis" <mex (AT) hot (DOT) ee> wrote in message
news:uvgdaje$GHA.4024 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
Hi

Has ŽDataGridView row limits?

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


Regards;
Mex







Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.