T
ton
Hi,
This is a part of my custum server control. The DataTbl in de sub is a
recordset (ADODOTNET). It works fine when Allowpaging is not set, but when I
set is to True I receive an error: Nullreference exception was unhandled by
user code
Protected Overrides Sub CreateChildControls()
Grid = New GridView
Grid.ID = "Grid"
Grid.AutoGenerateColumns = True
Grid.AllowPaging = True
Grid.DataSource =DataTbl 'a correct datatable
Grid.DataBind() 'ERROR OCCURS on this line: Nullreference exception
was unhandled by user code
Controls.Add(Grid)
End Sub
thanks
ton
This is a part of my custum server control. The DataTbl in de sub is a
recordset (ADODOTNET). It works fine when Allowpaging is not set, but when I
set is to True I receive an error: Nullreference exception was unhandled by
user code
Protected Overrides Sub CreateChildControls()
Grid = New GridView
Grid.ID = "Grid"
Grid.AutoGenerateColumns = True
Grid.AllowPaging = True
Grid.DataSource =DataTbl 'a correct datatable
Grid.DataBind() 'ERROR OCCURS on this line: Nullreference exception
was unhandled by user code
Controls.Add(Grid)
End Sub
thanks
ton