Hi, i have a problem about when i have for example a grid with 6 pages and i'm on page 5 then i do a new data load into the grid and this new load only has 3 pages, then the grid doesn't show any data but the 3 page index appear on the botton,
it is like the grid couldn't back to the page index 0. I've tried with Webhierarchicaldatagrid.Behaviors.PageIndex = 0 but it doesn't work. I hope anyone could help me with this issue it's very important for my work, my boss is breathing on my back really hard :-).
Hi,
What does the actual code for when you switch data sources and reset the page index look like? Have you tried setting the page index of the GridView paging behavior to 0 before/after switching?
regards,David Young
This is the actual code i'm using for switch data sources:
WebHierarchicalDataGrid.Rows.Clear(); WebHierarchicalDataGrid.Behaviors.Paging.PageIndex = 0;
WebHierarchicalDataGrid.Behaviors.Paging.PageIndex = 0;
WebHierarchicalDataGrid.DataSource = DataSet;
WebHierarchicalDataGrid.DataMember = DataSet.Tables[0].TableName;
WebHierarchicalDataGrid.Bands[0].DataMember = DataSet.Tables[1].TableName;
I've tried changing order for line "WebHierarchicalDataGrid.Behaviors.Paging.PageIndex = 0;" , but it doesn't work anyway.
hello miguelon_,
we are also working on WebHierarchicalDataGrid. but lot of issues we are getting.
can u please send ur sample code in which u are binding using datasets.