代码如下:
public override void ApplyCellStyles(C1FlexGrid grid, CellType cellType, CellRange rng, Border bdr)
{
try
{
var columnindex = rng.Column;
var rowindex = rng.Row;
if (columnindex == grid.Selection.Column && rowindex == grid.Selection.Row)
{
bdr.BorderBrush = Brushes.Black;
bdr.BorderThickness = new Thickness(1);
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
} |