G
Guest
I have a vb.net 2.0 app that is loading a GridView with a DataSource that is
returned from a function.
The definitions in the function are:
Dim ReportDS As DataSet = New DataSet
Dim ReportTable As System.Data.DataTable = New
System.Data.DataTable("SendTo")
The ReportTable is populated row by row by data gotten back from the
Exchange server.
I then set ReportDS.Tables.Add(ReportTable) and return ReportDS
I then set GridView.DataSource = ReportDS()
This displays exactly as I want it to.
The question is how do I enable sorting on the GridView where it will
actually sort? Setting AllowSorting="True" causes a post back, but no
sorting occurs. What is the optimal way to be able to enable sorting here?
Thanks.
returned from a function.
The definitions in the function are:
Dim ReportDS As DataSet = New DataSet
Dim ReportTable As System.Data.DataTable = New
System.Data.DataTable("SendTo")
The ReportTable is populated row by row by data gotten back from the
Exchange server.
I then set ReportDS.Tables.Add(ReportTable) and return ReportDS
I then set GridView.DataSource = ReportDS()
This displays exactly as I want it to.
The question is how do I enable sorting on the GridView where it will
actually sort? Setting AllowSorting="True" causes a post back, but no
sorting occurs. What is the optimal way to be able to enable sorting here?
Thanks.