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.
<ASPATAGRID 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>
</ASPATAGRID>
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.
<ASPATAGRID 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>
</ASPATAGRID>