Hi.
I have a dynamic ASPxGridView than receives a DataSet. I want change the data the ASPxGridView, but don't want save the database. The ASPxGridView must save the data in database when the user click the button than out the ASPxGridView. There is how to do this?
Here's a piece of code
gv.DataSource = ds.Tables["TABLE"];
gv.SettingsDetail.ShowDetailRow =
true;
gv.SettingsDetail.ShowDetailButtons =
true;
gv.ID =
"ASPxGridView2";
gv.KeyFieldName =
"CODIGOPRODUTO";
gv.Templates.DetailRow =
new DetailRowTemplate(ds.Tables["TABLE3"]);
gv.ClientInstanceName =
"grid2";
gv.ClientSideEvents.RowClick =
"function(s, e) {grid2.StartEditRow(e.visibleIndex);}";
gv.SettingsEditing.Mode =
GridViewEditingMode.Inline;
gv.DataBind();
protected void gv_RowUpdating(object sender, DevExpress.Web.Data.ASPxDataUpdatingEventArgs e)
{
e.NewValues[
"campo0"] = 1;
}
When save the data and the event RowUpdating is execute, the message is show: "Specified Method is not supported"
Can Somebody help me?
Thanks