In-place Editing Problem

Discussion in 'ASP .Net Datagrid Control' started by Jeff Petter, Oct 15, 2003.

  1. Jeff Petter

    Jeff Petter Guest

    I'm having a problem getting the in-place editing feature to work with a datagrid. Unless I missed something, I think I followed the procedure, but when I click on the edit button, nothing happens. The code I'm using is:

    private void DataGrid1_EditCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
    {
    DataGrid1.EditItemIndex = e.Item.ItemIndex;
    BindDataGrid();
    }

    Is there something else that has to be set to make this work? If I manually change the EditItemIndex in the grid's properties, and run it, the specified row is editable, but I can't get the edit button columns to work. Does anyone have any ideas? I'd really appreciate any thoughts.

    Thanks,
    Jeff
    Jeff Petter, Oct 15, 2003
    #1
    1. Advertising

  2. Jeff Petter

    Jos Guest

    > "Jeff Petter" <> wrote in message
    news:Zmjjb.32735$...
    > I'm having a problem getting the in-place editing feature to work with a

    datagrid. Unless I missed something, I think I followed the procedure, but
    when I click on > the edit button, nothing happens. The code I'm using is:
    >
    > private void DataGrid1_EditCommand(object source,

    System.Web.UI.WebControls.DataGridCommandEventArgs e)
    > {
    > DataGrid1.EditItemIndex = e.Item.ItemIndex;
    > BindDataGrid();
    > }
    >
    > Is there something else that has to be set to make this work?
    > If I manually change the EditItemIndex in the grid's properties,
    > and run it, the specified row is > editable, but I can't get the edit

    button columns to work.
    > Does anyone have any ideas? I'd really appreciate any thoughts.


    Did you set the datagrid's EditCommand event handler to
    DataGrid1_EditCommand?

    --

    Jos
    Jos, Oct 16, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. kai

    Datagrid in-place editing

    kai, Oct 30, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    451
  2. Ian Bicking
    Replies:
    4
    Views:
    340
    Ian Bicking
    Apr 28, 2006
  3. Sori Schwimmer

    Editing a function in-memory and in-place

    Sori Schwimmer, Apr 27, 2006, in forum: Python
    Replies:
    0
    Views:
    298
    Sori Schwimmer
    Apr 27, 2006
  4. Hrvoje Vrbanc
    Replies:
    9
    Views:
    826
    Ronelle Griffiths
    Sep 16, 2008
  5. Keefe Goldfisher via .NET 247

    Sizing text entry boxes on in-place editing of datagrid row with dynamically created columns

    Keefe Goldfisher via .NET 247, Mar 7, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    180
    Keefe Goldfisher via .NET 247
    Mar 7, 2005
Loading...

Share This Page