R
Ralf
I need to use a gridview that has a hyperlink as one of the fields.
The fields need to be databound. When the user presses the hyperlink,
I do not want to navigate to another page. I want to store the ID of
the row. The user will then use buttons on the page that represents
what they want to do to that row. Delete, update, etc. Here is the
code for the gridview.
NOTE: Removed some parts of this, like datasourceID and things.
Didn't format well on the post
<cc1:GridViewSD ID="gvwORLList" runat="server" AllowPaging="True"
AllowSorting="True"
ArrowDownUrl="~/images/sortdescending.gif" rowUpUrl="~/images/
sortascending.gif"
AutoGenerateColumns="False" CellPadding="4"
HorizontalAlign="Left" />
<Columns>
<asp:BoundField DataField="template_name"
HeaderText="Record Title" SortExpression="template_name" />
<asp:BoundField DataField="CALENDAR_year"
HeaderText="Year" SortExpression="CALENDAR_year" />
<asp:BoundField DataField="Column1" HeaderText="Status"
ReadOnly="True" SortExpression="Column1" />
</Columns>
</cc1:GridViewSD>
The fields need to be databound. When the user presses the hyperlink,
I do not want to navigate to another page. I want to store the ID of
the row. The user will then use buttons on the page that represents
what they want to do to that row. Delete, update, etc. Here is the
code for the gridview.
NOTE: Removed some parts of this, like datasourceID and things.
Didn't format well on the post
<cc1:GridViewSD ID="gvwORLList" runat="server" AllowPaging="True"
AllowSorting="True"
ArrowDownUrl="~/images/sortdescending.gif" rowUpUrl="~/images/
sortascending.gif"
AutoGenerateColumns="False" CellPadding="4"
HorizontalAlign="Left" />
<Columns>
<asp:BoundField DataField="template_name"
HeaderText="Record Title" SortExpression="template_name" />
<asp:BoundField DataField="CALENDAR_year"
HeaderText="Year" SortExpression="CALENDAR_year" />
<asp:BoundField DataField="Column1" HeaderText="Status"
ReadOnly="True" SortExpression="Column1" />
</Columns>
</cc1:GridViewSD>