I have a grid and the rows of the table added to the data source changed but the grid is not updated. How can I call a Refresh on the Grid to repaint itself and update?
Thanks, Shilpi
I am using UltraWebGrid.
Hello Shilpi,
You can rebind the grid in any event that you need (button click, grid click, row selection change etc.) and the new data will be displayed.
Every page event that can cause a Postback to the server will call a “Page_Load”event handler and if you binding your grid in that event the new data will be displayed.
If you want your grid to be updated on certain time interval you can use this example as a guide - http://samples.infragistics.com/2009.1/WebFeatureBrowser/contents.aspx?showCode=True&t=WebGrid/AjaxImplementation/LiveDemo.aspx~srcview.aspx?path=../webfeaturebrowservb/WebGrid/AjaxImplementation/LiveDemo.src~srcview.aspx?path=WebGrid/AjaxImplementation/LiveDemo.src
Let me know if you have further questions about this scenario.
Let me know if you need any further assistance with this question.