HyperLinkColumn and column width

A

Atif Jalal

I am using a Datagrid control and one of its column is a
'HyperLinkColumn'. The link text for this HyperLinkColumn is sometimes
beyond 100 characters. I would like to display the link on multi-line
if the number of characters in the link exceed 100 characters. I tried
adding the <ItemStyle> to the HyperLinkColumn tag but it did not
work, the whole of the link is displayed on one line with the column
width getting extended.

<asp:HyperLinkColumn
DataNavigateUrlFormatString="'LineItem.aspx?LineItemId={0}&Process=1&'"
DataNavigateUrlField="ProcessLineItemId" DataTextField="Description"
HeaderText="Line Item - Description">

<ItemStyle Width="100px" Wrap=True></ItemStyle>

</asp:HyperLinkColumn>

Is it that <ItemStyle> does not work with <asp:HyperLinkColumn> ? Any
help appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top