Asp net gridview rowupdating new values empty Chatsexdirty

posted by | Leave a comment

This enables you to provide an event-handling method that performs a custom routine, such as canceling the update operation, whenever this event occurs.

A Grid View Update Event Args object is passed to the event-handling method, which enables you to determine the index of the current row and to indicate that the update operation should be canceled.

If not I'll try the suggestion below =) I was doing databinding in my Page_Load event and when I clicked "Update" the Post Back was done, so was the Page_Load event fired.

Grid View was filled with the old values again, so in my Grid.

To cancel the update operation, set the collections, if necessary, before the values are passed to the data source.

I am binding to a custom datasource in the code behind.New Values collection is empty in the Row Updating event Handler. New Values contains the collection of values updated in the Grid View control. The database table used here has just two fields (sid and sname) My code is as follows: Web Page: --------------------------------------------------------------------------------------------------- im having the same problem i think: in my case i have set binding for template fields; ive a grid with 2 types of field: - bound filed editable (no the tamplate) - bound readonly field (template field) ive set Eval for the template and it is readonly, i placed also Bind to make a test but still count is zero; also had a try changing the datasource, and sure i have set the key field for the grid. OK, so I solved my problem, but not straight forward. I am using a Grid View to display a dataset with no binding to an SQLdatasource. There is a code snip posted on the net that is supposed to take care of that. New Values collection coming from the Grid_Row Updating Event is Empty.

Leave a Reply

dating 50 russisch