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
830
web datagrid : adding new row and accessing the newly added row from code behind
posted

Hi there,

when the user adds a new row in a webdatagrid. Is there a way to access the newly added row cells from code behind so I can do an insert using my custom methods in code behind.

 

The reason for this is that I am not using automatic insertion, but the user wants to insert data only after he clicks on a save button.

 

So my question pls:

 

1/ how can I access the newly added row from code behind, and should I do something specific on the client side inorder to have this new row available ?

Because, when I iterate through my grid in code behind, I can NOT find the new row (the row count remains the same as the original row count during the binding) !!!

 

2/ do u think there is any better way to achieve the user's requirement ?

 

thanks a lot :)

Parents Reply Children