dataview, sort and findrows
-
Is it possible to use a dataview to return multiple rows using two keys for the column? The result set must be based on two condition in the sort function for example, dataview.Sort = "Col1, Col2". Now, how do I use the FindRows function to use 2 keys or do I use a different function? Should I forget the idea of using a dataview and stick with a datatable? Thanks a lot!
-
Is it possible to use a dataview to return multiple rows using two keys for the column? The result set must be based on two condition in the sort function for example, dataview.Sort = "Col1, Col2". Now, how do I use the FindRows function to use 2 keys or do I use a different function? Should I forget the idea of using a dataview and stick with a datatable? Thanks a lot!
subclass override and give your own implementation Live Life King Size Alomgir Miah
-
Is it possible to use a dataview to return multiple rows using two keys for the column? The result set must be based on two condition in the sort function for example, dataview.Sort = "Col1, Col2". Now, how do I use the FindRows function to use 2 keys or do I use a different function? Should I forget the idea of using a dataview and stick with a datatable? Thanks a lot!
Dear Ixhan, You can do this by using rowfilter property or select method for table of dataview. This way u will get a set of rows that can be stored in other rowset or bind to a datagrid. If it works then reply me.