Hi,
Is it possible to have 2 ListBox then when a Button is Click the Items is Sorted already to GridView accordingly. btw I have done a sort button but for LB1 only. and LB2 only.
LB1 LB2 GridView
1 A 1 A
3 B 2 C
2 C 3 B
4 D 4 D
Do you want to sort third column GridView?
Is this is your requirement?
Please correct me if i am wrong.
Refer:
You can also refer the above link so that you can sort the DataTable using DataView.
Azim says: Do you want to sort third column GridView? Is this is your requirement? Please correct me if i am wrong.
my gridview must show 2 columns only. that contains data that is already sorted . . since I will be needing this for other purpose.
1 A
2 C
3 B
4 D
Azim says: Refer: How to sort a DataTable before binding to GridView in ASP.Net You can also refer the above link so that you can sort the DataTable using DataView.
it works! Thanks!
Is it also possible to make the sorted Items to be my headertext in gridview colum?.
gridview
col header --- 1A 2C 3B 4D
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.