|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
DataView, DataTable, or DataSet?Hi;
If I want paging for a GridView I can't return a collection, I have to return a DataView, DataTable, or DataSet (at least that is what the error message I got says). Any suggestions as to what is best if it is just rows from one table in a database from a select? My guess is DataTable. Hi Dave,
Thanks for your post! "If I want paging for a GridView I can't return a collection" I have bit confusion about this. In my opinion, we can return the collection which is data source of the GridView control. "Any suggestions as to what is best if it is just rows from one table in a database from a select? My guess is DataTable." Yes, you are correct. The DataTable is appropriated. Regards, Yuan Ren [MSFT] Microsoft Online Support Hi;
Sorry - sorting, not paging. If I have sorting enabled and sort a column on a grid view I passed a collection, it tells me it must be a DataTable, ... Show quoteHide quote > Hi Dave, > > Thanks for your post! > > "If I want paging for a GridView I can't return a collection" > I have bit confusion about this. In my opinion, we can return the > collection which is data source of the GridView control. > > "Any suggestions as to what is best if it is just rows from one table in a > database from a select? My guess is DataTable." > Yes, you are correct. The DataTable is appropriated. > > Regards, > > Yuan Ren [MSFT] > Microsoft Online Support > > Hi Dave,
Thanks for your reply! Could you please supply your code snippet for sorting the column? It will help me to perform the testing and figure out some results or factors. Thanks for your understanding! I'm looking forward your reply. Regards, Yuan Ren [MSFT] Microsoft Online Support
Are you sure? for delete in GridView
FormView vs create How to get CommandField and ButtonField in the toolbox? Binding TextBox Gridview custom sort - works but always sorts ascending Perform insert to gridview/table DropDownlist problem Creating Dynamic controls Disable CommandField for some rows of data Searching a list box using a text box |
|||||||||||||||||||||||