J
JohnE
The question is with a gridview. I have changed an asp:bound field with an
asp:templatefield using a linkbutton inside (source code is below). This is
the ID column that the user will see with it underline. They are
familiar/accustomed to seeing this and what it means and what they can do.
But, I also had the SELECT next to the row that when clicked the
SelectedIndexChanging event would turn the row as indicated in the
SelectedRowStyle of the gridview. The Select is gone in favor of adding real
estate back into the gridview.
<asp:TemplateField HeaderText="ID"
SortExpression="ChangeRequestID">
<ItemTemplate>
<asp:LinkButton ID="lbtnChangeRequestDetailView"
runat="server" ForeColor="Black" CommandName="Request"
Text='<%#
DataBinder.Eval(Container.DataItem,"ChangeRequestID") %>'
OnClick="lbtnChangeRequestDetailView_Click"
CommandArgument='<%#
DataBinder.Eval(Container.DataItem,"ChangeRequestID") %>' >
</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
How can I get the row highlighted by using the above linkbutton and the
current SelectedRowStyle of the gridview?
.... John
asp:templatefield using a linkbutton inside (source code is below). This is
the ID column that the user will see with it underline. They are
familiar/accustomed to seeing this and what it means and what they can do.
But, I also had the SELECT next to the row that when clicked the
SelectedIndexChanging event would turn the row as indicated in the
SelectedRowStyle of the gridview. The Select is gone in favor of adding real
estate back into the gridview.
<asp:TemplateField HeaderText="ID"
SortExpression="ChangeRequestID">
<ItemTemplate>
<asp:LinkButton ID="lbtnChangeRequestDetailView"
runat="server" ForeColor="Black" CommandName="Request"
Text='<%#
DataBinder.Eval(Container.DataItem,"ChangeRequestID") %>'
OnClick="lbtnChangeRequestDetailView_Click"
CommandArgument='<%#
DataBinder.Eval(Container.DataItem,"ChangeRequestID") %>' >
</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
How can I get the row highlighted by using the above linkbutton and the
current SelectedRowStyle of the gridview?
.... John