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
795
Ultragrid cell appearance - Dotted line under the text of the each cell
posted

I need dotted line under the text of each cell. Something link url link that need to be dotted  line rather fixed horizontal straight line.   My code goes as follows.

 

   ultraGrid1.DisplayLayout.Bands[0].Columns[colIndex].CellActivation = Activation.NoEdit;
                            Infragistics.Win.FormattedLinkLabel.UltraFormattedTextEditor urlLinkEditor = new Infragistics.Win.FormattedLinkLabel.UltraFormattedTextEditor();
                            urlLinkEditor.TreatValueAs = Infragistics.Win.FormattedLinkLabel.TreatValueAs.URL;
                            urlLinkEditor.LinkClicked += new Infragistics.Win.FormattedLinkLabel.LinkClickedEventHandler(urlLinkEditor_LinkClicked);
                            urlLinkEditor.UnderlineLinks = Infragistics.Win.FormattedLinkLabel.UnderlineLink.Always;
                            urlLinkEditor.LinkAppearance.ForeColor = Color.Black;
                            urlLinkEditor.VisitedLinkAppearance.ForeColor = Color.Black;
                            urlLinkEditor.ScrollBarDisplayStyle = Infragistics.Win.UltraWinScrollBar.ScrollBarDisplayStyle.Never;
                            ultraGrid1.DisplayLayout.Bands[0].Columns[colIndex].EditorComponent = urlLinkEditor;

 

 

I am getting the fixed line under the text but not dotted one. It would be really helpful if someone help me to acheive this. Thanks!

 

Parents
No Data
Reply
  • 69832
    Offline posted

    To the best of my knowledge what you are describing is not even possible using .NET string rendering methods (Graphics.DrawString), since the Font class does not extend this functionality. You would probably have to use the IUIElementDrawFilter interface to draw the line manually.

Children