Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > In-place Editing Problem

Reply
Thread Tools

In-place Editing Problem

 
 
Jeff Petter
Guest
Posts: n/a
 
      10-15-2003
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


 
Reply With Quote
 
 
 
 
Jos
Guest
Posts: n/a
 
      10-16-2003
> "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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Are you looking for high quality photo editing and video editing? gwanglu@gmail.com C Programming 0 07-19-2006 12:32 PM
Problem Editing ASP.NET Pages in VS 2003 Jeff ASP .Net 0 01-26-2004 04:33 AM
Update problem while editing text field + populate checkbox value from table Nithin ASP .Net 0 12-31-2003 09:30 PM
Update problem while editing text field + populate checkbox value from table Nithin ASP .Net 0 12-31-2003 09:30 PM
HELP: Problem creating/editing file VB Programmer ASP .Net 5 11-28-2003 07:48 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57