Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
230
FormattedLinkEditor for Cell Editor (vs URL style).
posted

Hi, I have this problem:

I want to set URL style to appropriate Cell (not for Column!) in Initialize Row event:

Something like this to set a style:

e.Row.Cells["ProcessCode"].Style = ColumnStyle.URL;

Also I want to connect event to this URL style cell. When using Column events I've succeeded using FormattedLinkEditor attached to Column[".."].Editor, and I've implemented event LinkClicked and it worked, because when style is changed for a column to .URL Editor automatically changes to FormattedLinkEditor....something like this work's:

 band.Column["..."].Style = URL ;

 ((FormattedLinkEditor)band.Column["..."].Editor)).LinkClicked += new LinkClickedEventHandler(eventLinkClicked)

But when I try to add FormattedLinkEditor to Cell["..."].Editor there is no existing .Editor (it is null), so I've created:

e.Row.Cells["..."].Editor = new FormattedLinkEditor(true);

e.Row.Cells["..."].Style = ColumnStyle.URL;

 ((FormattedLinkEditor)e.Row.Cells["..."].Editor)).LinkClicked += new LinkClickedEventHandler(eventLinkClicked)

And connected event to editor, but at the end there was no link editor shown in the cells! So there is no blue link to click on. It seems as that adding new FormattedLinkEditor to Cell somehow changes style or does something wrong..

Please advise on this.

# Note: there is another solution: to catch On Cell click events or something like that but I really want to make this work with .Editors

Really appreciate your help on this.

Thank you, Igor