views:

571

answers:

0

I have a following situation. I have a gridview and I need to dynamically add rows to it. All works fine and dandy. However, lately, I have been curious about making this process faster and more usable. I found a Callback feature in asp.net 2.0.

It seems to make sense for a case when the gridview is used ti display something. Adding a row programmatically however, requires to add a row to DataTable (that's gridview bound to). Since DataTable resides on the server, from what I understand it doesn't make sense here to use Callback....

this is a nice tutorial that outlines main things.

in step 5:

"To finish the asynchronous loading we have to implement the two methods that are defined by the ICallbackEventHandler interface we implemented in step 3. One of the methods binds a DataTable to the GridView and renders the control."

from that I gather that there is no way to make dynamically adding rows to gridview w/o postbacks....any thoughts?