We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Grouped Grid Cells

Is it possible to get the cells in the GroupedGrid to look like CellType = Static, but also raise events in the grid for TableControlCurrentCellControlDoubleClick?

Basically - the main objective is to hide the caret by making the cell look like a label. I still want to handle the double click event, so the cell still gets focus, but without the appearance.

Thanks


1 Reply

NR Nirmal Raja Syncfusion Team November 12, 2008 09:32 PM UTC

Hi Harry,

Thank you for your interest in Syncfusion products.

Please try this code to solve this issue and let me know if this helps.

void gridGroupingControl1_TableControlCurrentCellMoved(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCurrentCellMovedEventArgs e)
{
flag = 0;
}

void gridGroupingControl1_TableControlCurrentCellStartEditing(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCancelEventArgs e)
{
if (flag==0)
{
e.Inner.Cancel = true;
}
}
int flag=0;
void gridGroupingControl1_TableControlCellDoubleClick(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCellClickEventArgs e)
{
flag = 1;
}

Regards,
Nirmal


Loader.
Live Chat Icon For mobile
Up arrow icon