Hi all,
I am using a datagrid to show values from a SQL table.
My problem is, I want to show the details of the each row when the user clicks the 'View details' buttoncolumn.
I am able to fire a event when the user clicks the button column
here is my html for the datagrid
************************************************** ************************************
<Columns>
<asp:HyperLinkColumn Target="_blank" DataNavigateUrlField="Title" DataNavigateUrlFormatString="SelectedTitle.aspx?ti tle={0}"
DataTextField="Title" SortExpression="Title" HeaderText="TITLE"></asp:HyperLinkColumn>
<asp:BoundColumn DataField="Author" HeaderText="AUTHOR"></asp:BoundColumn>
<asp:BoundColumn DataField="Year" HeaderText="YEAR">
<ItemStyle HorizontalAlign="Left"></ItemStyle>
</asp:BoundColumn>
<asp:ButtonColumn ButtonType="LinkButton" text="View Details" CommandName="select"></asp:ButtonColumn>
</Columns>
************************************************** *************************************
when i try to capture the column values and write it to a label, it returns empty string to the label
here is the code that i am using,
Dim buttonColumn As TableCell = e.Item.Cells(0)
Dim buttonColText As String = buttonColumn.Text
Label1.Text = buttonColText
how should i go about doing that. any help is appreciated.
Thank you
--------------------------------
From: Lenin Sakthees
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>jnkENdEaQ0+N3CV3kc2qqg==</Id>