Hi,
When I handle the QueryColCount and QueryRowCount I get the error "Specified argument was out of the range of valid values. Parameter name: rowIndex" when trying to write something in the cells.
If I set the size AND remove the event then everything is working. If I keep the even then it will make the error.
I must be missing a line of code somewhere.
Thanks!
Here is my sample code:
Imports Syncfusion.Windows.Forms.Grid
Public Class Form1
Private Sub GridControl1_QueryColCount(ByVal sender As System.Object, ByVal e As GridRowColCountEventArgs) Handles GridControl1.QueryColCount
e.Count = 10
e.Handled = True
End Sub
Private Sub GridControl1_QueryRowCount(ByVal sender As System.Object, ByVal e As GridRowColCountEventArgs) Handles GridControl1.QueryRowCount
e.Count = 10
e.Handled = True
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
''GridControl1.ColCount = 10
''GridControl1.RowCount = 10
GridControl1.Refresh()
End Sub
End Class
WindowsApplication1_50fd4da.zip