R
rob merritt
Hi I have a data grid with boundcolumns what I am trying to do is make
the data that shows up in the bound columns clickable so as to be able
to run the dgrid_select code (whic I now run from EditCommandColumn)
any hints
(sorry for the mess I am just kind of feeling my way around ASP.NET)
<asp:datagrid id="dgrid" runat="server" Visible="False"
oncancelcommand="dgrid_cancel" onupdatecommand="dgrid_update"
oneditcommand="dgrid_select" onselectcommand="dgrid_select"
gridlines="both" onitemcommand="dgrid_edit"
autogeneratecolumns="false" align="left" datakeyfield="loginid">
<Columns>
<asp:BoundColumn DataField="loginid" ReadOnly="True" Visible="False"
HeaderText="User Name"></asp:BoundColumn>
<asp:BoundColumn DataField="lname" ReadOnly="True" HeaderText="Last
Name" ></asp:BoundColumn>
<asp:BoundColumn DataField="fname" ReadOnly="True" HeaderText="First
Name" ></asp:BoundColumn>
<asp:HyperLinkColumn HeaderText="Header"
DataNavigateUrlField="loginid"
DataNavigateUrlFormatString="nextPage.aspx?ID={0}" text
</asp:datagrid>
the data that shows up in the bound columns clickable so as to be able
to run the dgrid_select code (whic I now run from EditCommandColumn)
any hints
(sorry for the mess I am just kind of feeling my way around ASP.NET)
<asp:datagrid id="dgrid" runat="server" Visible="False"
oncancelcommand="dgrid_cancel" onupdatecommand="dgrid_update"
oneditcommand="dgrid_select" onselectcommand="dgrid_select"
gridlines="both" onitemcommand="dgrid_edit"
autogeneratecolumns="false" align="left" datakeyfield="loginid">
<Columns>
<asp:BoundColumn DataField="loginid" ReadOnly="True" Visible="False"
HeaderText="User Name"></asp:BoundColumn>
<asp:BoundColumn DataField="lname" ReadOnly="True" HeaderText="Last
Name" ></asp:BoundColumn>
<asp:BoundColumn DataField="fname" ReadOnly="True" HeaderText="First
Name" ></asp:BoundColumn>
<asp:HyperLinkColumn HeaderText="Header"
DataNavigateUrlField="loginid"
DataNavigateUrlFormatString="nextPage.aspx?ID={0}" text
</Columns>=' said:</asp:EditCommandColumn>
</asp:datagrid>