I''m drawing left and right borders to display edges for groups of columns. The column headers are done via a merge and I set the left and right border of cells based on whether or not they are the most Left or most Right cell in a range. Everything seems to be working fine except for the merged cells at the top. The right border does not seem to show up. Code snippets are below any help would be appreciated.
Thanks
Brian
GridRangeInfo rangeInfo = getRangeInfoForGridColumn(e.ColIndex -1);
if ((rangeInfo != null) && (rangeInfo.Left <= e.ColIndex - 1) && (rangeInfo.Right >= e.ColIndex - 1))
{
applyGroupBorderStyle(gridColumn.DataGridColumnGroup, e.Style);
e.Style.MergeCell = GridMergeCellDirection.ColumnsInRow;
e.Style.CellValue = getColumnGroupCaption(gridColumn);
}
--
int colIndex = style.CellIdentity.ColIndex - 1;
if (colIndex == range.Left)
{
style.Borders.Left = new GridBorder(GridBorderStyle.Solid, columnGroup.BorderColor);
}
else if(colIndex == range.Right)
{
style.Borders.Right = new GridBorder(GridBorderStyle.Solid, columnGroup.BorderColor);
}
mergeborder.zip