Hai all,
I need to insert a link label inside a grid. Is it possible to do that. The problem is the link data is going to be fed by a database and the link lable should come at the first column of the grid. Is there any way to do that. Please help with some code samples if possible. Thank you in advance for all your help.
If you don't care about showing a link as visited, then yes, the easiest solution is to keep the color of visited links as the same color as they are when they haven't been clicked. Doing this is far more efficeint than creating a new control for each row.
-Matt
Are you saying that i need to insert a new control on the row initialize event? I've thought of keeping the visited link colors as blue. Is this a right way? Infact in my application i don't need to show them as purple when a user clicks the link thats why i've thought way. Please tell me is it a right solution. Or can you tell me in detail how can i enable duplicate values in the grid.
1) The e.Context provides the UltraGridCell that was clicked in this case
2) The editor maintains a VisitedLinks collection, so if the user clicks on a single value, then any other cells that contain that value will also be clicked. The only way around this is to either create a new editor for each cell, or create a new editor only for the cells that will have duplicate values (all of which can be done in the InitializeRow event, then setting the EditorControl property of a cell).
Am able to capture the link click in the link clicked event but it comes with two problems
1. I'm not able to capture from which cell from which cell i got this event click.
2. If I'm having same values in more than one cell in the column i'm having the link on the click one of the link the other link also turns purple.
Is there any way to solve my problems. Please advice. Thank you very much.
In this case you could use a standalone UltraFormattedLinkLabel and assign it as the EditorControl of the column instead of assigning the Style. At this point, you should be able to handle the LinkClicked event.