Which "list" are you referring to when you say "select from list"? New Edit Index]; Check Box chk2 = (Check Box)Grid Row. Check weather Data Key fields is necessary for datagrid.. perhaps you were looking for this: NETvinz/archive/2009/06/04/ NETvinz/archive/2009/08/02/Hi Vinz, Where would I set the Edit Index ? But when I set Auto Generate Edit Button to True, and edit link link button is shown in gridview ..You can't use small case letters change it to On Row Editing inside your gridview _______________________________________________________________________________ Don't forget to Mark as answer if it helps Hi 1. Because none of the gridview events are fired, during editing . And I need to click the edit button to edit the row... But when I set Auto Generate Edit Button to True, and edit link link button is shown in gridview .. Using a Grid View, you have the option of only having certain columns as editable using the Edit Item Template (make them labels instead of textboxes, for example).We can handle click event of any button type control inside gridview by two way first is through event bubbling and second one is directly (in this type of event handling we need to access current girdviewrow container)Through the first way we have to work with On Row Command event of gridview (This event fires every time when gridview button type child raises click event.) and Command Name, Command Argument property of gridview child controls.In Second way need to work with on Click event of linkbutton, sender will always have the reference of linkbutton that raised on Click event and we have to access current girdviewrow container that can reference by Naming Container property of linkbutton.The Row Updating event fires fine , but gv2_Row Updated does not fire? Width="99%" Header Style-Css Class="ph Head" Css Class="phone Table" Grid Lines="Both" Auto Generate Edit Button="true" Auto Generate Delete Button="true" On Row Editing="gv2_Row Editing" On Row Canceling Edit="gv2_Row Conceling Edit" On Row Updated="gv2_Row Updated" On Row Updating="gv2_Row Updating" Edit Row Style-Back Color="Light Yellow" Data Key Names="id External ID" If you're manually binding data to the Grid View (not using a Data Source ID), then the Row Updating event will fire after an update command, but the Row Updated event will never fire. Aaron I should have been more specific as to why I need the Row Updated to fire.It looks Row Updated event will not fire unless I use a Data Source ID, which I am not. So, after clicking update, the Row Updating fires but I cannot get the Grid View to exit out of Edit Mode. This doesn't work because I set the data source like follows. String' does not contain a property with the name ' Role'.
Data Field = "Activity Hours"; bfld Activity Hours. When all you've got is a Hammer, Every Problem looks like a Nail. Within the Item Template I have an Image Buttong with a Command Name of "Edit".This works as expected and I can put a breakpoint in the Row Command event handler to see the "Event" command name. I thought that was pretty explicit, so I created the event: private void gv Main Data Grid_Row Deleting(Object sender, Grid View Deleted Event Args e) Well....didn't work. Then, when I actually try to use the delete button, I get an error that the Row Deleting event is not being handled. Then, when I actually try to use the delete button, I get an error that the Row Deleting event is not being handled. Add(bfld Activity Date); Bound Field bfld Activity Hours = new Bound Field(); bfld Activity Hours. Add(bfld Activity Hours); Command Field cfld Delete Button = new Command Field(); cfld Delete Button. Here is the C#code to bind the data to the gridview Service1 My Service = new Service1(); ds Main Data = My Service. This can be beneficial to other community members reading the thread. Add(cfld Delete Button); It's data source is a Dataset retrieved from a webservice. So, I thought that maybe I needed to configure it via the actual aspx file. I thought that was pretty explicit, so I created the event: private void gv Main Data Grid_Row Deleting(Object sender, Grid View Deleted Event Args e) Well....didn't work. Please remember to click “Mark as Answer” on the post that helps you. Hi, I have a dropdownlist column in gridview, which is databound. Take a look at these examples for your reference: Grid View Insert, Edit, Update and Delete – The Ado.when I select from list, I want to set another check box column in gridview to true. Net way - If using Bound Field Columns Adding Rows in Grid View with Edit, Update and Delete Functionality - If using Template Field Columns Editing is only fired when you click an Edit button on a row - it occurs before the row goes in to edit mode.Hi all, I can't seem to find a post relating to the Row Updated event not firing.I know this happens after an update command happens on the database, but I want to write my own custom update.