|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
DataGridView RowHi
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 Show quoteHide quote "Meelis" <m**@hot.ee> schreef in bericht news:uvgdaje$GHA.4024@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 > > Thx cor.
This problem exists only with my home computer (win2000 prof) works fine on XP on work machine. Code "hangs" on settind Grids datasource. My code(xml file added as attachment) Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim ds As New DataSet Dim dg As New DataGridView ds.ReadXml("1061.xml") dg.DataSource = ds dg.DataMember = "lng" Me.Controls.Add(dg) End Sub End Class Meelis Show quoteHide quote "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message [attached file: 1061.zip]news:e3imYqj$GHA.204@TK2MSFTNGP04.phx.gbl... > 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" <m**@hot.ee> schreef in bericht > news:uvgdaje$GHA.4024@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 >> >> > > Haaa found the problem
If you set DatagridView.RowHeadersWidthSizeMode=AutoSizeToAllHeaders then setting DataGridView's Datasource hangs Is this a bug? Meelis Show quoteHide quote "Meelis" <m**@hot.ee> wrote in message news:uvgdaje$GHA.4024@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 > > I hope this link says enough about what I think,
http://connect.microsoft.com/Main/content/content.aspx?ContentID=2220 :-) CorShow quoteHide quote "Meelis Lilbok" <meelis.lil***@deltmar.ee> schreef in bericht news:uyiaG6k$GHA.3396@TK2MSFTNGP02.phx.gbl... > > Haaa found the problem > > If you set DatagridView.RowHeadersWidthSizeMode=AutoSizeToAllHeaders then > setting DataGridView's Datasource hangs > > Is this a bug? > > > > Meelis > > > > > > "Meelis" <m**@hot.ee> wrote in message > news:uvgdaje$GHA.4024@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 >> >> > >
tootip or microhelp for menu items
Problems with references NULL dates show today's date rather than a blank or NULL on form NewBie start a windows service remotely Trouble with a console app Scoping Issues line replacing ideas Write an XML node Looking for online articles/tutorials or good reference books |
|||||||||||||||||||||||