sort a dataset
-
how to sort a dataset?? i want to sort a column inside a dataset.
Adrian De Battista - Web Designer, Web Programmer, Software Programmer From Malta. My Website .. www.MaltaTrade.org
-
how to sort a dataset?? i want to sort a column inside a dataset.
Adrian De Battista - Web Designer, Web Programmer, Software Programmer From Malta. My Website .. www.MaltaTrade.org
hi, i would like to ask something before giving answer. would u like to sort the entire table with respect to a particular column or u just want to sort the column.
-
how to sort a dataset?? i want to sort a column inside a dataset.
Adrian De Battista - Web Designer, Web Programmer, Software Programmer From Malta. My Website .. www.MaltaTrade.org
You could create a DataView from the table you want to sort:
DataSet ds = getMyDataSet(); DataView dv = new DataView(ds.Tables["theTableNameToSort"]); dv.Sort = "myCoulmnName ASC"; // if you want descending it go's: dv.Sort = "myCoulmnName DESC";
Hope it helps Thomas -
You could create a DataView from the table you want to sort:
DataSet ds = getMyDataSet(); DataView dv = new DataView(ds.Tables["theTableNameToSort"]); dv.Sort = "myCoulmnName ASC"; // if you want descending it go's: dv.Sort = "myCoulmnName DESC";
Hope it helps Thomashow can i then send the dataview inside a dataset??
Adrian De Battista - Web Designer, Web Programmer, Software Programmer From Malta. My Website .. www.MaltaTrade.org
-
how can i then send the dataview inside a dataset??
Adrian De Battista - Web Designer, Web Programmer, Software Programmer From Malta. My Website .. www.MaltaTrade.org
-
hi, i would like to ask something before giving answer. would u like to sort the entire table with respect to a particular column or u just want to sort the column.
All i have is just one column. I need to sort it in ascending order. I need to use the dataset but.
Adrian De Battista - Web Designer, Web Programmer, Software Programmer From Malta. My Website .. www.MaltaTrade.org