Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To update a specific value in each cell during the DevExpress ASPxGridView BatchUpdate using C#, you can handle the ASPxGridView.BatchUpdate event and iterate through the ASPxGridView.DataController.VisualRowCount to update each cell. Here is an example:

protected void ASPxGridView1_BatchUpdate(object sender, DevExpress.Web.Data.ASPxDataBatchUpdateEventArgs e) { foreach (var updateValues in e.UpdateValues) { foreach (var updatedItem in updateValues.Keys) { var gridDataItem = ASPxGridView1.GetRowByKeyValue(updatedItem);

        if (gridDataItem != null)
        {
            gridDataItem["ColumnName"] = "NewValue";
        }
    }
}

}

In the above example, you need to replace "ColumnName" with the actual name of the column you want to update and "NewValue" with the new value you want to set for that column.