I have a column in an UltraWinGrid (Infragistics2.Win.UltraWinGrid.v7.3 Version:7.3.20073.38) and is has a Style of URL. I want to be able to handle a click on the text (link) but ignore clicks in the cell on non-text. I figured I would need to handle the LinkClicked event on the embedded FormattedLinkEditor but cannot determine how do do so. Any guidence would appreciated.
Thanks,
Glenn
FYI... the grid will share the same editor for all columns using the same Style by default. So the code you have here will actually end up hooking the event for all columns. Which is not neccessarily a bad thing, just something to be aware of.
If you want to hook the event separately for each column, then you need to assign a new FormattedLinkEditor to that column.
Hi Glenn!
glennmcd said:I figured it out: FormattedLinkEditor editor = (FormattedLinkEditor) parentGrid.DisplayLayout.Bands[0].Columns["AcceptedCount"].Editor;editor.LinkClicked += new Infragistics.Win.FormattedLinkLabel.LinkClickedEventHandler(editor_LinkClicked);
FormattedLinkEditor editor = (FormattedLinkEditor) parentGrid.DisplayLayout.Bands[0].Columns["AcceptedCount"].Editor;
editor.LinkClicked += new Infragistics.Win.FormattedLinkLabel.LinkClickedEventHandler(editor_LinkClicked);
Thanks for posting your solution - I really appreciate it!
Regards, Florian