greetings, i'm building a custom style in a datagrid, and i need to display buttons end of each row. the problem is how do i know which row is selected when a button is click?
in the ItemCommand event handler (which you'd set for buttons) you could get
the index of the row (e.Item.ItemIndex) which you could use to access
DataGrid's dataKeys collection and the primary key from there (if you need
to get the correcponding DB key field value)
Or does the custom style have impact on it such that normal ways won't work?
--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist http://blogs.aspadvice.com/joteke
Asha said:
greetings, i'm building a custom style in a datagrid, and i need to
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.