H
Hajime Kusakabe
Hi.
I have created a datagrid (datagrid1) without any columns on a aspx page.
Then aspx.vb adds columns from a database.
It is somthing like this ....
==================================
Dim myBoundColumnEntryBy As New BoundColumn()
myBoundColumnEntryBy.DataField = "Entry By"
myBoundColumnEntryBy.SortExpression = "Entry By"
myBoundColumnEntryBy.HeaderText = "Entry By"
DataGrid1.Columns.Add(myBoundColumnEntryBy)
DataGrid1.DataSource = dv ' dv is a dataview.
DataGrid1.CurrentPageIndex = 0
DataGrid1.DataBind()
==================================
Everything working except Sorting/Paging features.
When I click the sorting or paging the whole datagrid disappear.
Any idea?
Thanks.
Haji
I have created a datagrid (datagrid1) without any columns on a aspx page.
Then aspx.vb adds columns from a database.
It is somthing like this ....
==================================
Dim myBoundColumnEntryBy As New BoundColumn()
myBoundColumnEntryBy.DataField = "Entry By"
myBoundColumnEntryBy.SortExpression = "Entry By"
myBoundColumnEntryBy.HeaderText = "Entry By"
DataGrid1.Columns.Add(myBoundColumnEntryBy)
DataGrid1.DataSource = dv ' dv is a dataview.
DataGrid1.CurrentPageIndex = 0
DataGrid1.DataBind()
==================================
Everything working except Sorting/Paging features.
When I click the sorting or paging the whole datagrid disappear.
Any idea?
Thanks.
Haji