> > Now if the user clicks on the sort button. I need to sort is dynamically on > the columns which the user has selected. I know one way is to get DataView > and sort it. But how do i get a dataView if I do not have a DataTable as > there is no database involved. Please help.
Try to look for LINQ OrderBy() method. > Question 2) How can I get a dataTable from an existing DataGridView if there > is no database involved. > You can use DataTable without connecting to the database. Just declare a variable that is DataTable type and then add new columns. After that, you may append rows to the table variable. Lau.
