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.
Unfortunately, activation email could not send to your email. Please try again.

Checkbox column in gridGroupingControl

Thread ID:

Created:

Updated:

Platform:

Replies:

55593 Feb 1,2007 07:49 AM Jul 23,2007 06:49 PM Windows Forms 5
loading
Tags: GridControl
Sathishkumar Kaliavaradhan
Asked On February 1, 2007 07:49 AM

Hi All,

I have GridGroupingControl in that one column as checkbox and it also bounded to datasource column,my problem while clicking on checkbox,i am checking the datasource of that column value it does n't got changed, but again click another row same column then only the value got changed.

I want to update the datasource each and every click of checkbox.

Can you please help me how do i achive this as soon as possible because it is very very urgent for me.

Thanks and Regards
K.Sathishkumar.

Administrator [Syncfusion]
Replied On February 1, 2007 10:31 AM

Hi SathishKumar,

You can hanlde the TableControlCellChanged event and call Table.Endedit method to push the changes to the underlying datasource. Here is a code snippet.

private void gridGroupingControl1_TableControlCurrentCellChanged(object sender, GridTableControlEventArgs e)
{
GridCurrentCell cc = e.TableControl.CurrentCell;
if( cc.Renderer.CurrentStyle.CellType == "CheckBox")
e.TableControl.Table.EndEdit();
}

Best Regards,
Haneef

Sathishkumar Kaliavaradhan
Replied On February 1, 2007 11:18 AM

Hi Haneef,

Thanks for your answers,

I have another question i have checkbox in group header and i handling that in "gridGroupingControlPoints_TableControlCheckBoxClick"
event and below is my code.

for (int i = 3; i < e.TableControl.Table.DisplayElements.Count; i++)
// {
// Record rec = e.TableControl.Table.DisplayElements[i].GetRecord();
// rec.SetValue("AddToTrend", !(bool)style.CellValue);
// }

i am using setValue() function for setting the value to the below records checkbox column,

my problem is it taking too much time for me and CPU usage as 100 %

How do i solve this problem ?

Waiting for your reply...

Thanks and Regards
K.Sathishkumar



Administrator [Syncfusion]
Replied On February 1, 2007 12:53 PM

Hi Sathishkumar,

Please try the attached sample and let me know if you are looking something different.
GGC_GroupCheckBox_6e48b0a2.zip

Best Regards,
Haneef

James Blibo
Replied On July 23, 2007 03:17 PM

If I have ShowRowHeader set to false for my grid, is it possible for me to place the group check box in the group caption cell?

haneefm [Syncfusion]
Replied On July 23, 2007 06:49 PM

Hi James,

Below is a minimal sample that shows you "How to add checkbox in a groupcaption cell of the grid?". Please refer this and let me know if this helps.
GroupCaptionCheckBox.zip

Best regards,
Haneef

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.

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.

;