Win Surprise Gifts!!!
Post New Question
Subscribe to Forum
Sorting in GridView using xml data in DataField
October 20, 2010
I need to sort the Gridview by using xmlDataSource.
Please help out.
Sajid P K
Posted Date: October 21, 2010 Points: 5
Below Link May help you...
Sajid P K
Posted Date: October 22, 2010 Points: 5
first u need to bind the dataset using xmldatareader
after that just write below code
code to sort the gridview in run-time
Dim MyDataView As New DataView
MyDataView = ds.Tables(0).DefaultView 'ds is dataset u need to bind first
MyDataView.Sort = "SortColumnName"
'SortColumnName is the name of the columnName of DataGridView you want to sort.
DGVFindList.DataSource = MyDataView 'DGVFindList is GridView Name
To post reply
Related Questions Related Questions
how its display the data gridview in vb.net?
how to show data from xml file in GridView
Fetch data from database in the textbox after hit the tabkey in the gridview........
Sorting Based on click on the Header column in a GridView
what is the way to filter data from dropdownlist to listview and then gridview
insert and display data in gridview in c#
How show specific columns gridview using Dynamic Data and autogenerated columns
Export GridView Data into PDF Document in ASP.Net
if condition bofore binding data in gridview
Display Data in Gridview
Latest Forum Questions From The Same Category
Slash(/) in Combobox
attaching the report in the web page
How do i get payment status in redirect page using bitpay?
Login with Facebook and Save details in database
Login with facebook account in my website
How to make a nested datalist control?
What class does Icon derive from?
What are the validation controls?
What''s the difference between an interface and abstract class?
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend