This is a migrated thread and some comments may be shown as answers.

GridViewMultiComboBoxColumn - Hide horizontal grid lines

2 Answers 66 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 21 Mar 2014, 03:15 PM
How can I hide the horizontal grid lines in the GridViewMultiComboBoxColumn?

Thanks!

2 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 26 Mar 2014, 06:03 AM
Hi Paul,

Please refer to the other forum thread where you have asked the same question. You will find our answer there: http://www.telerik.com/forums/multicolumncombobox---turn-off-grid-lines#VXM7EVBGZkqBTBrooZ0Gzw.

I hope this helps.

Regards,
Stefan
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
0
Stefan
Telerik team
answered on 26 Mar 2014, 08:28 AM
I should have added information how to access the editor in order to subscribe to the ViewCellFormatting event. Here is a small sample:
void radGridView1_CellEditorInitialized(object sender, GridViewCellEventArgs e)
{
    RadMultiColumnComboBoxElement mccb = e.ActiveEditor as RadMultiColumnComboBoxElement;
    if (mccb != null)
    {
        mccb.EditorControl.ViewCellFormatting -= EditorControl_ViewCellFormatting;
        mccb.EditorControl.ViewCellFormatting += EditorControl_ViewCellFormatting;
    }
}
 
void EditorControl_ViewCellFormatting(object sender, CellFormattingEventArgs e)
{
    e.CellElement.BorderBoxStyle = BorderBoxStyle.FourBorders;
 
    e.CellElement.BorderTopWidth = 0;
    e.CellElement.BorderBottomWidth = 0;
 
    e.CellElement.BorderLeftColor = e.CellElement.BorderColor;
    e.CellElement.BorderRightColor = e.CellElement.BorderColor;
}

More information about editor in RadGridView is available here: http://www.telerik.com/help/winforms/gridview-editors.html.

Let me know how this works for you. 

Regards,
Stefan
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
Tags
GridView
Asked by
Paul
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or