While Infragistics provides some amazing tools for web and form development, the WebDataGrid seems to have some weirdness in that it does not refresh the UI after a row update even while Ajax is enabled on the grid. This is especially evident when you use the InitializeRow event of the grid to perform changes to coloring or other data.
The workaround:
1. Perform a clear on the data source.
2. Perform your select within your data source.
3. Set the datasource on the grid.
4. Perform a databing.
Example:
myGrid.ClearDataSource();
mySQL.SelectCommand = "SELECT * FROM SomeView";
mySQL.DataBind();
myGrid.DataSource = mySQL;
myGrid.DataBind();
Then your code in the myGrid_InitializeRow(object sender, Infragistics.Web.UI.GridControls.RowEventArgs e) will actually take effect and show up nicely.
Share This To :
0 comments:
Post a Comment