|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
RowCommand - item index?I've just started experimenting with VS2005. I have a GridView with a command
button in it. When I click the button the RowCommand event fires but how do I find out which row it was that caused it? In VS2003 I used e.Item.ItemIndex in the ItemCommand event but e.Item doesn't exist for a RowCommand event. -- Steve
http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowcommand.aspx
This is a quote from the above link: ' The GridViewCommandEventArgs class does not contain a ' property that indicates which row's command button was ' clicked. To identify which row's button was clicked, use ' the button's CommandArgument property by setting it to the ' row's index. Show quoteHide quote "SteveR" wrote: > I've just started experimenting with VS2005. I have a GridView with a command > button in it. When I click the button the RowCommand event fires but how do I > find out which row it was that caused it? In VS2003 I used e.Item.ItemIndex > in the ItemCommand event but e.Item doesn't exist for a RowCommand event. > -- > Steve
Any hints on how to do frames in ASP.Net 2.0?
How to deselect item on single select listbox? Where in the viewstate is a GridView's rows? Remove Dynamic User Controls from a collection I really need to get this working...... control exposing collection. link on an entire row in a datagrid Gridview - Accessing a field value in current row HTML editor for Safari browser Customizing a TreeNode's viewstate |
|||||||||||||||||||||||