nitin yadav

nitin yadav

  • NA
  • 136
  • 0

Multiple Column sorting in GridView

Nov 7 2012 12:58 AM
Hi,

I want to do multiple column sorting in Gridview using C#. Suppose if we have sort column A of table in desc order then after i need to sort column B then i want the order of column A will not be changed, it remains the same.
AB
12
21

if i sort Col A in descending order then result will be 

AB
22
11

but when i sort col B in ascending order i want the result like 
AB
21
12

if you can see col A remains the same after col B sorting. Thanks

Regards
Nitin Yadav

Answers (1)