|
|
submitted by
chrismo111
1 year, 5 months ago
mhinze.com — 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.
|
|
tags:
Gotchas, GridViewCommandEventArgs, TipsAndTricks, ASPNET, GridView | tag it
Everyones tags: | Your tags: | |
|
|
|
Add a live kick counter to your blog >>
You can even customize the image by choosing your own colors, and then clicking
the button below to update the preview and the html code:
Simply copy and paste this HTML into your blog post.
Users who kicked this story:
No comments so far
|