Well I want to know if this is possible because I have no idea how to do this. I have one query that bring me some information about hotel rooms; I need to separate this info in different
DataTables, lets say by each floor; like putting first floor in one DataTable and 20 floor in other
DataTable, etc; then join all these DataTables in one DataSet and finally add this one to a
GridView. Now with all of these I create 2 buttons to move between all
DataTables and the GridView will only show the info by Category(floors).
ie:
“Computers are like bikinis. They save people a lot of guesswork.”
(Sam Ewing)
Rawler
Member
135 Points
210 Posts
GridView, DataSet and DataTables
Jun 30, 2009 08:51 PM|LINK
Hello,
Well I want to know if this is possible because I have no idea how to do this. I have one query that bring me some information about hotel rooms; I need to separate this info in different DataTables, lets say by each floor; like putting first floor in one DataTable and 20 floor in other DataTable, etc; then join all these DataTables in one DataSet and finally add this one to a GridView. Now with all of these I create 2 buttons to move between all DataTables and the GridView will only show the info by Category(floors).
ie:
(Sam Ewing)
RatheeshC
Contributor
5652 Points
1198 Posts
Re: GridView, DataSet and DataTables
Jun 30, 2009 11:54 PM|LINK
Hi,
you could try bind the table by passing the floor number upon clicking the button..
Thanks
Ratheesh
Please mark it as answer if it resolves your issue.
sreejukg
All-Star
27607 Points
4122 Posts
Re: GridView, DataSet and DataTables
Jul 01, 2009 05:44 AM|LINK
gridview is designed to bind against one datasource(say datatable). So it is not logical to bind gridview against multiple datatables.
find the below post
http://forums.asp.net/p/1366300/2839892.aspx
My Blog