DataGrid Cell
I have the following datagrid that I am trying to get the UserID so I may have something for my where clasue in a Select statment.
------
<table id="tbldatagrid" align="center" border="0">
<tr>
<td>
<asp:datagrid runat="server" id="UserDataGrid" AutogenerateColumns="False" BorderColor="Black" Font-Size="11" Font-Name="Arial" BackColor="White" HeaderStyle-HorizontalAlign="Center" Headerstyle-Font-Bold="True" Headerstyle-Font-Size="12" Headerstyle-Font-Name="Arial" Headerstyle-BackColor="White" cellspacing="0" cellpadding="2" GridLines="Both" OnEditCommand="EditCommand">
<Columns>
<asp:BoundColumn DataField="UserID" HeaderText="User ID" ItemStyle-HorizontalAlign="Center" ReadOnly="false"></asp:BoundColumn>
<asp:BoundColumn DataField="Name" HeaderText="Name" ItemStyle-HorizontalAlign="Center" ReadOnly="False"></asp:BoundColumn>
<asp:BoundColumn DataField="Username" HeaderText="Username" ItemStyle-HorizontalAlign="Center" ReadOnly="False"></asp:BoundColumn>
<asp:BoundColumn DataField="Password" HeaderText="Password" ItemStyle-HorizontalAlign="Center" ReadOnly="False"></asp:BoundColumn>
<asp:EditCommandColumn ButtonType="LinkButton" editText="View Details" ItemStyle-HorizontalAlign="Center" HeaderText="Details"></asp:EditCommandColumn>
</Columns>
</asp:datagrid>
</td>
</tr>
</table>
--------------
Any ideas on how to this??
Thanks,
Mark
|