P Patrice Jun 28, 2005 #2 See the DefaultView member... The DataTable holds the data, views allows to create sorted, filtered, restricted views of those data...
See the DefaultView member... The DataTable holds the data, views allows to create sorted, filtered, restricted views of those data...
A Alen Smith Jun 28, 2005 #3 Where to add DefaultView member in the below code? How to SORT the data? Dim myAdapter As New SqlDataAdapter(data from SP) Dim ds As New DataSet myAdapter.Fill(ds) myDataGrid.DataSource = ds myDataGrid.DataBind() Thanks, Smith
Where to add DefaultView member in the below code? How to SORT the data? Dim myAdapter As New SqlDataAdapter(data from SP) Dim ds As New DataSet myAdapter.Fill(ds) myDataGrid.DataSource = ds myDataGrid.DataBind() Thanks, Smith
M MarkD Jun 28, 2005 #4 Dim _dv As DataView = New DataView(ds.Tables(0)) dv.Sort = Sort myDataGrid.DataSource = dv myDataGrid.DataBind()
Dim _dv As DataView = New DataView(ds.Tables(0)) dv.Sort = Sort myDataGrid.DataSource = dv myDataGrid.DataBind()
A Alen Smith Jun 28, 2005 #5 Thanks a lot. Smith MarkD said: Dim _dv As DataView = New DataView(ds.Tables(0)) dv.Sort = Sort myDataGrid.DataSource = dv myDataGrid.DataBind() message Click to expand...
Thanks a lot. Smith MarkD said: Dim _dv As DataView = New DataView(ds.Tables(0)) dv.Sort = Sort myDataGrid.DataSource = dv myDataGrid.DataBind() message Click to expand...