Tuesday December 1st

Monday November 30th

Gridview: Where is the Row in RowCommand? DisplayIndex

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.


Commenting on Stories is limited for now and will open up to those recommended by the community. Learn how
Loading DotNetKicks...
brought to you by the Kicks Network