create a dataview from a datagrid
Does anyone know how to create a dataview from a datagrid. The
examples I see for sorting are persisting the dataset, datatable, or
dataview in viewstate. It seems like a waste for the datagrid and the
dataview to both be stored in viewstate. Any ideas would be greatly
Re: create a dataview from a datagrid
One way is to set the DataView Table property to the table that you use
to populate the grid.
Dim dv as New DataView
dv.table = yourDataSet.yourTable
dv.sort "IDField DESC"
DataGrid1.DataSource = dv
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
|All times are GMT. The time now is 10:20 PM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.