Performing Delete operation in GridView control in ASP.NET when a Edit Operation takes place at the same time?

Use the RowEditing event for the multiple updates. As mentioned in this issue.

Use the RowEditing event for the multiple updates. As mentioned in this issue: protected void ASPxGridView1_RowUpdating(object sender, DevExpress.Web.Data. ASPxDataUpdatingEventArgs e) { datasource.

UpdateCommand = "UPDATE ....."; datasource. Update(...); datasource. UpdateCommand = "UPDATE ....."; datasource.

Update(...); datasource. UpdateCommand = "UPDATE ....."; datasource. Update(...); e.

Cancel = true; ASPxGridView1.CancelEdit(); } For finding the control I recommend the approach that is mentioned in this issue: http://www.devexpress.com/Support/Center/p/Q91970.aspx protected void grd_ReportChartSeries_RowUpdating(object sender, DevExpress.Web.Data. ASPxDataUpdatingEventArgs e) { ASPxGridView gridView = sender as ASPxGridView; ASPxComboBox combo = gridView. FindEditRowCellTemplateControl(gridView.

Columns"Data2" as GridViewDataColumn, "comboData2") as ASPxComboBox; object data2 = combo. Value; combo = gridView. FindEditRowCellTemplateControl(gridView.

Columns"ID" as GridViewDataColumn, "comboID") as ASPxComboBox; object ID = combo. Value; ASPxTextBox textBox = gridView. FindEditRowCellTemplateControl(gridView.

Columns"Data1" as GridViewDataColumn, "txtData1") as ASPxTextBox; object data1 = textBox. Value; ds = Session"DataSet" as DataSet; DataTable dataTable = ds. Tables0; DataRow row = dataTable.Rows.

Find(e. Keys0); row"ID" = ID; row"Data1" = data1; row"Data2" = data2; gridView.CancelEdit(); e. Cancel = true; } Or you could do the update and delete through one stored procedure call.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions