Board index » Web Programming » DataGrid and Table.DefaultView
|
GaryO44
|
DataGrid and Table.DefaultView
Web Programming254
Hi I have a problem with the DataGrid Datasource. The issue is this, setting the grid DataSource to Table1, which is done when the page loads and then changing the datasource to a different one causes issues. Now when the user clicks on a Search button, it changes the DataSource to a different table using a DataTable.DefaultView and here lies the problem. When the Grid is rebinded, it still keeps the previus column names in the datasource, so if I click on the search button again, it works fine. Please could someone out there help. Cheers Paul. - |
