in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

error when EditUpdate

Last post 11/20/2008 2:31 PM by Mehul Harry (Developer Express). 7 replies.
Page 1 of 1 (8 items)
Sort Posts:
Previous Next
  • 11/18/2008 2:02 PM

    error when EditUpdate

     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

    Marcos Aguiar Jr
    Developer System
  • 11/19/2008 1:49 PM In reply to

    Re: error when EditUpdate

     Hi Harry.

    Thanks for message, but I am not achieving use.

    I want than when user click the button Update the data is not send the database. In Exemple than I am doing, the message is show: Specified method is not supported.

    See the example than you show, Where the data are being saved when the Update button is executed? Its saving to session or xml?

    Please help me. I await contact.
    Thanks.
    Marcos Aguiar Jr
    Developer System
  • 11/19/2008 2:06 PM In reply to

    Re: error when EditUpdate

    Marcos,

    Not sure but can you create a sample application (using access db), zip it and upload it here please? I'll see if I can help.

  • 11/19/2008 2:25 PM In reply to

    Re: error when EditUpdate

     Hi Mehul.

    Unfortunately I was not possible to attach the database, but I attached the asp.net file. I hope it can help.
     
    The source code of file is Portuguese. I'm Brazilian.
     
    I need update the datas in the grid, but just saving the datas after the user clicks in other button that is outside the grid.
    Thanks for help.
     
     
     
     
    Marcos Aguiar Jr
    Developer System
  • 11/19/2008 7:21 PM In reply to

    Re: error when EditUpdate

    Marcos,

    Why not just use a sqldatasource? It'll make these issues go away.

  • 11/20/2008 5:59 AM In reply to

    Re: error when EditUpdate

    Harry,

    I never wore the SqlDataSource and I don't know with it help me.

    When I click the button changes the error message appears "Specified method is not supported"? Why? What am I doing wrong?.
    I'm lost.
    Thanks for help me.

    Marcos Aguiar Jr
    Developer System
  • 11/20/2008 2:31 PM In reply to

    Re: error when EditUpdate

    Hi Marcos,

    The sqldatasource approach works very well and you can see it used in many of the demos.

    As for your approach, you should see this tutorial: How to create a grid control programmatically

Page 1 of 1 (8 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED