Updating a Grid after a button has been clicked.
Posted on 2011-04-20
I am fairly new to ASP.NET programming, but not new to programming itself. My problem seems to lie in how to handle the page life-cycle and how to make things happen in the order I need them too.
Here is my problem.
I have a grid on a page, lets call it grid 2. When a client selects a row on the grid it updates information in text boxes below. The user makes changes to these and clicks on a button. Now the button works fine and updates the underlying SQL database correctly. My problem is that the grid is not getting updated until later on, when another selection is made.
The order of operations appears to be ..
Button_Click - update happens here
Page_Render - I rebind the grid here but the grid is not updated on the screen.
The grid and the button are both Telerik Rad Controls.
Is there a way to make this work. Do I need to use AJAX Panels or something that I am not grasping yet ?
Thank you for any input.