473,549 Members | 2,642 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HyperLinkColumn and column width

I am using a Datagrid control and one of its column is a
'HyperLinkColum n'. 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:HyperLinkC olumn
DataNavigateUrl FormatString="' LineItem.aspx?L ineItemId={0}&P rocess=1&'"
DataNavigateUrl Field="ProcessL ineItemId" DataTextField=" Description"
HeaderText="Lin e Item - Description">

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

</asp:HyperLinkCo lumn>

Is it that <ItemStyle> does not work with <asp:HyperLinkC olumn> ? Any
help appreciated.
Nov 18 '05 #1
0 1079

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3372
by: SStory | last post by:
I have a style sheet for my site. It has various classes in it. It has <A: styles defined for all anchor tags. I have a datagrid in ASP.NET with a stylesheet linked to the page. It defines links a yellow which is what I normally won't but in this case I want to override the link color and can't seem to do it. I set the forecolor in...
3
1210
by: Morten | last post by:
Hi. After a while I finaly discovered how to use HyperLinkColumns. What I can't find is how to send mote than one "value" like page.aspx?id1&id2!!! <asp:HyperLinkColumn DataNavigateUrlField="InvoNo" DataNavigateUrlFormatString="Invo.aspx?Id={0}" DataTextField="InvoNo" HeaderText="Invo No."> <HeaderStyle...
1
1964
by: Dave | last post by:
I have a hyperlink column in a datagrid as follows <asp:HyperLinkColumn DataNavigateUrlField="OrderId" DataNavigateUrlFormatString="OrderDetails.aspx?Id={0}" DataTextField="Order" HeaderText="Order" ItemStyle-CssClass="Green10pt"></asp:HyperLinkColumn renders ... <td class="Green10pt"><a href=OrderDetails.aspx?Id=398365">ABC...
1
1414
by: Rob Meade | last post by:
Hi all, I have just added a hyperlink column to my datagrid - however I am having some troubles getting it to behave as I would like... My objective is to have a hyperlink that I can click on - it doesn't take the page anywhere (ie, javascript:void(0);) - but I want an onClick event for it. I can normally do this kinda thing with a...
10
1743
by: tshad | last post by:
I have a Datagrid with a column: <asp:HyperLinkColumn DataTextField="JobTitle" DataNavigateUrlField="PositionID" DataNavigateUrlFormatString="AddNewPositions.aspx?PositionID={0}" HeaderText="Job Title" Visible="True" SortExpression="JobTitle"/>
2
2048
by: aparnasinha26 | last post by:
Hi All, I have to pass variable in a query string. The query string is in the hyperlink coloumn of a datgrid. The code appears like this <asp:HyperLinkColumn DataNavigateUrlField="ProductID" DataNavigateUrlFormatString="ViewProduct.aspx?qProductID='<%strProduct%>'" DataTextField="ProductID" HeaderText="Product ID"> <HeaderStyle...
1
1774
by: Sean Aitken | last post by:
Does anyone know the easiest way to trim the whitespace from a CHAR(...) bound value coming from a database and used with a HyperLinkColumn? In this case, the column is setup using: .... <asp:HyperLinkColumn Text="Edit Taxes" DataNavigateUrlField="AccountID"...
1
2816
by: Roy | last post by:
I'm assuming this is amazingly simple and I'm just missing the boat. On the html side of an asp.net page I have a datagrid, a "search" button, and 8 text boxes for search criteria. A user enters in varying search criteria, hits "search", info is passed to a stored proc, results return and displayed in the datagrid. Every field in the...
4
2250
by: rcoco | last post by:
Hi all, I have this big problem with hyperlinks I would appriciate any help please. My web site has two datagrids on the same page. And one has a list of names of the users which are in a HyperlinkColumn. The second datagrid is for inserting data, and when a user inserts data I used 'Windows Authentication' for names in one column called...
0
7730
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7975
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
5381
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5101
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3510
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3491
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1957
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1069
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
777
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.