Home All Groups Group Topic Archive Search About
Author
1 Nov 2006 7:06 PM
Meelis
Hi

Has ´DataGridView  row limits?

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


Regards;
Mex

Author
2 Nov 2006 4:53 AM
Cor Ligthert [MVP]
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
>
>
Author
2 Nov 2006 6:44 AM
Meelis Lilbok
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
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
>>
>>
>
>

[attached file: 1061.zip]
Author
2 Nov 2006 7:14 AM
Meelis Lilbok
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
>
>
Author
2 Nov 2006 7:07 PM
Cor Ligthert [MVP]
I hope this link says enough about what I think,

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


:-)

Cor

Show 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
>>
>>
>
>