Error!
Success!

Gridview: Where is the Row in RowCommand? DisplayIndex

0
kicks

Gridview: Where is the Row in RowCommand? DisplayIndex  (Unpublished)

Provides solutions to a frustrating issue: GridViewCommandEventArgs doesn't expose the Row that raised the event. Say you need an itemTemplate for a link button to execute deletes.; how do you get a reference to the correct row? While the datagrid's DataGridCommandEventArgs exposed the row through it's Item property & e.Item.ItemIndex GridViewCommandEventArgs only three properties: CommandName, CommandArgument & CommandSource (which provides a reference to the gridview itelf). Wtf?! Solutions provided in story.


Kicked By:
Drop Kicked By: