DataGrid value

B

Big E

I'm using ASP.Net. I have a DataGrid that has a ASP Button Column. On Click
of the Button Column I have a procedure start.
In that procedure I need to find out the contents of the row of data. I've
tried many different things including Dim itemCell As TableCell =
e.Item.Cells(2)
My dataGrid is below.

Thanks.


<ASP:DATAGRID id="dgRealtor" runat="server" Width="224px" Font-Size="8pt"
AutoGenerateColumns="False" DataKeyField="RealtorId"
HeaderStyle-BackColor="#aaaadd" Font-Name="Verdana" CellSpacing="0"
CellPadding="3" ShowFooter="false" BorderColor="black"
BackColor="LightGoldenrodYellow">
<HeaderStyle BackColor="DarkKhaki"></HeaderStyle>
<Columns>
<asp:HyperLinkColumn DataTextField="RealtorId"
HeaderText="RealtorId" DataNavigateUrlField="RealtorId"

datanavigateurlformatstring="RealtorConsolidationDetails.aspx?RealtorId={0}"
/>
<asp:BoundColumn DataField="RealtorFirstName" HeaderText="First
Name"></asp:BoundColumn>
<asp:BoundColumn DataField="RealtorLastName" HeaderText="Last
Name"></asp:BoundColumn>
<asp:BoundColumn DataField="RealtorOfficePhone"
HeaderText="Phone"></asp:BoundColumn>
<asp:BoundColumn DataField="RealtorEmail"
HeaderText="Email"></asp:BoundColumn>
<asp:ButtonColumn HeaderText="Select" Text="Click"
CommandName="Grid_SelectCommand" />
</Columns>
</ASP:DATAGRID>
 

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,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top