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