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!
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.
I guess we could only alter the border of the cell using the IUIElementDrawFilter. is it possible to draw the dotted line below the text of the cell. Do u have any sample code.