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.

Problem while editing a summary cell

Thread ID:

Created:

Updated:

Platform:

Replies:

58844 Mar 29,2007 11:03 AM Mar 30,2007 04:04 AM Windows Forms 6
loading
Tags: GridControl
Harshad
Asked On March 29, 2007 11:03 AM

Hi,

I am trying to edit the sumaary cell. I have made it editable and i could able to edit the summary cell properly but once i clicked any record cell then next time onwards i couldnot able to edit the summary cell...when i try to edit ...and entered any value in the summary cell cursor goes to the prev clicked record cell..I have tried lots of option but couldnt find the solution
Please help me to solve this...this is very urgent for me.

Thanks
Harshad

haneefm [Syncfusion]
Replied On March 29, 2007 12:35 PM

Hi Harshad,

Here is a link to a forum thread that discusses this topic.
http://www.syncfusion.com/Support/Forums/message.aspx?&MessageID=49541

Best regards,
Haneef

Harshad
Replied On March 29, 2007 12:37 PM

Addition to prev details...I have debugged more and conclusionis...When i click on record cell and then click on summary cell then record cell still remain active and present in currentRecord. and so when i start editing summary cell grid throws me to that record. and i couldnt modify the summary...
Event TableControlCurrentCellChanging is getting fired for summary cell and after that Grid fires TableControlCurrentCellControlLostFocus Event directly.

Please help.

haneefm [Syncfusion]
Replied On March 29, 2007 01:11 PM

Hi Harshad,

Please refer this.
http://www.syncfusion.com/Support/Forums/message.aspx?&MessageID=49541

Best regards,
Haneef

Harshad
Replied On March 29, 2007 01:28 PM

Please try to understand the scenario
I have already done all that you have mention.. As I said I am able edit summary cell unless i click on any record cell...but when i click on the record cell after that i can not edit summary cell it throws me to the record cell earlier selected

haneefm [Syncfusion]
Replied On March 29, 2007 02:36 PM

Hi Harshad,

Try setting the CurrentRecord to null for summary cell in the TableControlCurrentCellStartEditing event of the grid. See if this helps

private void gridGroupingControl1_TableControlCurrentCellStartEditing(object sender, GridTableControlCancelEventArgs e)
{
GridCurrentCell cc = e.TableControl.CurrentCell;
GridTableCellStyleInfo style = cc.Renderer.CurrentStyle as GridTableCellStyleInfo;
Element el = style.TableCellIdentity.DisplayElement;

if( el.Kind == DisplayElementKind.Summary )
{
e.TableControl.Table.CurrentRecord = null;
}
}

Please refer to the attached sample for implementation.
GGCSummary.zip

Best regards,
Haneef

Harshad
Replied On March 30, 2007 04:04 AM

Thanks a lot Haneef,

It worked....that for your timely replies as you always do..


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.

;