Help needed on using buttoncolumn in datagrid

E

Elton Wang

Hi Lenin,

Actually the first column in the datagrid is a hyperlink
column. So you may use

e.Item.Cells(1)

HTH

Elton Wang
(e-mail address removed)

-----Original Message-----
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?title={0}"
DataTextField="Title"
SortExpression="Title"
HeaderText="TITLE"> said:
<asp:BoundColumn DataField="Author"
HeaderText="AUTHOR"> said:
<asp:BoundColumn DataField="Year" HeaderText="YEAR">
<ItemStyle
HorizontalAlign="Left"> said:
</asp:BoundColumn>
<asp:ButtonColumn ButtonType="LinkButton"
text="View Details"
CommandName="select"> said:
</Columns>
********************************************************** *****************************
when i try to capture the column values and write it to a
label, it returns empty string to the label
 

Ask a Question

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.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,062
Latest member
OrderKetozenseACV

Latest Threads

Top