Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
130
WebDataGrid columns does not refresh/update after rebinding the DataSource in "ColumnSorted" event
posted

I have a WebDataGrid in my application with couple of BoundedDataField and other TemplateDataField.

After I assigned the DataSource and binding it to the WebDataGrid, I am manipulating the columns.

Once I sort any column, it displayed the data correctly in grid but when I do it multiple times, it does not seem to be refreshing the columns and it displays incorrct values in the grid column.

Till now I have tried with following options:

1)

oWebDataGrid.DataSourse = null;

oWebDataGrid.DataBind();

oWebDataGrid.DataSourse = <Some Data Source>;

oWebDataGrid.DataBind();

2)

oWebDataGrid.Rows.Clear();

oWebDataGrid.ClearDataSource();

3)

oWebDataGrid..RequestFullAsyncRender();

I have checked it in debug mode that I am getting the correct DataSource values.

Is there any way I can forcefully render the grid again to display column values again.

Any help will be greatly appreciated.

Thanks in advance.

Parents
No Data
Reply
  • 240
    Offline posted

    In my case when I Insert, update or delete using sql setences with WDG1.DataBind() refresh the grid with the data updated.

Children
No Data