S
Stephen
Hi,
Is there anyway I can make a column thats databound into a hyperlink to
navigate to another page?
Suppose I have 3 columns: SortOrder, Description, UserName
for eg:
<Columns>
<asp:HyperLinkColumn Text="View" DataNavigateUrlField="UserId"
DataNavigateUrlFormatString="ViewInfo.aspx?id={0}">
<HeaderStyle BackColor="#CCCCCC"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:HyperLinkColumn>
<asp:BoundColumn DataField="SortOrder" HeaderText="Sort Order"
SortExpression="SortOrder">
<ItemStyle HorizontalAlign="Center" Width="12%"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="Description" HeaderText="Description">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="UserName" HeaderText="UserName"
SortExpression="UserName">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
</Columns>
Instead of having HyperLinkColumn with "View" as text, how can I make
"Description" or whatever column I want
into the hyperlink (with the relevant info to display) and navigate it to
"ViewInfo.aspx?id={0}
please Advice,
Stephen
Is there anyway I can make a column thats databound into a hyperlink to
navigate to another page?
Suppose I have 3 columns: SortOrder, Description, UserName
for eg:
<Columns>
<asp:HyperLinkColumn Text="View" DataNavigateUrlField="UserId"
DataNavigateUrlFormatString="ViewInfo.aspx?id={0}">
<HeaderStyle BackColor="#CCCCCC"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:HyperLinkColumn>
<asp:BoundColumn DataField="SortOrder" HeaderText="Sort Order"
SortExpression="SortOrder">
<ItemStyle HorizontalAlign="Center" Width="12%"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="Description" HeaderText="Description">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="UserName" HeaderText="UserName"
SortExpression="UserName">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
</Columns>
Instead of having HyperLinkColumn with "View" as text, how can I make
"Description" or whatever column I want
into the hyperlink (with the relevant info to display) and navigate it to
"ViewInfo.aspx?id={0}
please Advice,
Stephen