spiritual mature dating india - Grid view rowupdating asp net

by  |  26-Jan-2016 15:13

I'm displaying xml file data in grid View via a dataset object.

I'm trying to update the xml file in the Row Updating event as follows - protected void gv Main_Row Updating(object sender, Grid View Update Event Args e) My dataset "ds" is null.

Data Source always gives you null for this u need to fill agin dataset from xl and update the row of dataset and using data adapter u need to update the dataset to xml u also need to use command builder for creating commands for upading dataset to database(XML) Data Source property of Charge Grid View would be null after the postback since it is not persisted in View State but data is showing after the post back only because of view state of inner control of gridview ..

grid view rowupdating asp net-27grid view rowupdating asp net-57

Parameter name: index" The following is the vb code: = 0 Then Dim row As Grid View Row = Direct Cast(Gridview1. Row Index), Grid View Row) Dim Col1_SL As Check Box = Direct Cast(row.

Find Control("cb1_SL"), Check Box) .................

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

A Grid View Updated Event Args object is passed to the event-handling method, which enables you to determine the number of rows affected and any exceptions that might have occurred.

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

Community Discussion