watherton
asked on
Retrieve DataKey field from Datagrid
Hi guys, I have a datagrid that comprises of information taken from a db.
The first col is hidden and retrieves the items id, the second col is a ImageButton. I do I click on the image button and retrieve its key in a code behind page?
Cheers
Wayne
The first col is hidden and retrieves the items id, the second col is a ImageButton. I do I click on the image button and retrieve its key in a code behind page?
Cheers
Wayne
ASKER
Jokra I have sorted this out now, i was just about to delete this q.
But maybe you could help me on this.
How do i do the following:
<asp:HyperLinkColumn runat="server"
DataNavigateUrlField="Item Key"
DataNavigateUrlFormatStrin g="window. open('abou t:blank',' MoreInfo.a spx?id={0} ', 'toolbar=no, scrollbars=no,menubar=no,w idth=500,h eight=100' )"
DataTextField="ItemKey"
DataTextFormatString="View More">
</asp:HyperLinkColumn>
But maybe you could help me on this.
How do i do the following:
<asp:HyperLinkColumn runat="server"
DataNavigateUrlField="Item
DataNavigateUrlFormatStrin
DataTextField="ItemKey"
DataTextFormatString="View
</asp:HyperLinkColumn>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
MessageBox.Show(this.dgMyD
Or more generically:
DATAGRIDNAME[ROWINDEX,COLU