Hi,
I need to display some part of the text in a cell with underline in a grid.
I am attaching the image for an example.
Hello,
To make it look like a web link I do this.
e.Layout.Bands[0].Columns[columnName].CellAppearance.FontData.Underline = Infragistics.Win.DefaultableBoolean.True;
e.Layout.Bands[0].Columns[columnName].CellAppearance.ForeColor = Color.Blue;
e.Layout.Bands[0].Columns[columnName].CellAppearance.Cursor = Cursors.Hand;
The only think I don't like is that the cursor changes to a hand when you enter the cell and not just when you are over the text. I am going to look at making that happen later.
Hope this helps.
Kris
If you want to make the contents of a cell look and act like a URL, set the Style of the column to URL. :)
Then you will need to set the Style of the column to FormattedText and set the Value of the cell to an XML string that displays the text you want. To learn more about the supported XML, see the documentation. Or place an UltraFormattedTextEditor control on a form and use the Value property editor to experiment.
Thanks for your suggestion.
But as per my requirement i have to display underline text in the same column i.e.Google www.Google.com not in another column.
Could any one help me in this regard.
Thanks.
I would suggest you just create another column for the URL and use the style for the column that Mike suggested. In the InitializeLayout event of the grid place this line of code there and change the name of the column to the column name you created.
e.Layout.Bands[0].Columns["ColumnName"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.URL;
This should give you what you want.
I need to show part of the text in a cell with underline in a grid.
for example
Site Satisfaction Statistics
Google www.google.com Good 90%
Yahoo www.yahoo.com Good 75%
Could any one please provide some sample.
Thanks
Hi ,
i need to show part of the text in a cell like a url in a grid.
For Example the grid is look like this
Site Satisfaction
Google www.google.com Good
Yahoo www.yahoo.com Good
Could you provide some sample.
Bye....