Hi James,
Sorry for the inconvenience. Please try the code below in the TableControlMouseDown and TableControlDrawCurrentCellBorder respectively. This will help you in achieving the desired behavior.
bool flag = false;
void gridGroupingControl1_TableControlMouseDown(object sender, GridTableControlMouseEventArgs e)
{
Point pt = new Point(e.Inner.X, e.Inner.Y);
GridTableCellStyleInfo styleInfo = e.TableControl.PointToTableCellStyle(pt);
if (styleInfo.TableCellIdentity.TableCellType == GridTableCellType.GroupCaptionPlusMinusCell)
flag = true;
else
flag = false;
}
void gridGroupingControl1_TableControlDrawCurrentCellBorder(object sender, GridTableControlDrawCurrentCellBorderEventArgs e)
{
GridTableCellStyleInfo style = e.TableControl.GetTableViewStyleInfo(e.Inner.RowIndex, e.Inner.ColIndex);
if (style.TableCellIdentity.TableCellType == GridTableCellType.GroupCaptionCell ||
style.TableCellIdentity.TableCellType == GridTableCellType.GroupCaptionSummaryCell && flag)
{
e.Inner.Cancel = true;
}
}
Let us know if you have any other questions.
Rajagopal