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. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grouped Grid Cells

Thread ID:

Created:

Updated:

Platform:

Replies:

77579 Nov 7,2008 10:27 AM UTC Nov 12,2008 09:32 PM UTC WinForms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On November 7, 2008 10:27 AM UTC

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


Nirmal Raja [Syncfusion]
Replied On 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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;