Home Forums WinForms controls Xceed Grid for WinForms Hide Column Header/Footer Borders Reply To: Hide Column Header/Footer Borders

User (Old forums)
Member
Post count: 23064

Ok, I got it to work by overriding ColumnManagerRow and ColumnManagerCell and overriding PaintBackground in both classes:

public class ColumnTitle : ColumnManagerRow
{
public ColumnTitle()
: base(new ShelfTitle())
{}
protected override Cell CreateCell(Column parentColumn)
{
return new ColumnTitleCell(parentColumn);
}

protected override void PaintBackground(GridPaintEventArgs e)
{}
}

public class ColumnTitleCell : ColumnManagerCell
{
public ColumnTitleCell(Column parentColumn)
: base(parentColumn)
{}

public ColumnTitleCell(ColumnTitleCell template)
: base(template)
{ }

protected override Cell CreateInstance()
{
return new ColumnTitleCell(this);
}

protected override void PaintBackground(GridPaintEventArgs e)
{}
}

Imported from legacy forums. Posted by Daniel (had 3599 views)