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.

GGC Questions

Thread ID:

Created:

Updated:

Platform:

Replies:

92526 Jan 19,2010 02:01 PM Jan 28,2010 05:09 AM Windows Forms 3
loading
Tags: GridControl
Ruslan Gasanbekov
Asked On January 19, 2010 02:01 PM

Hello,

I have a couple of questions regarding the GGC :

Please see the Code attachement.

1.When using Frozen columns feature
this.gridGroupingControl1.TableModel.Cols.FrozenCount = 2
there appears to be some sort of line (kind of blue dotted line)
on the crid at the last frozen column right border.
How can I remove this line or make it invisible ?

2.When using shared scroller and changing the appearance of the
GroupCaptionPlusMinusCell
(this.gridGroupingControl1.Appearance.GroupCaptionPlusMinusCell.CellType = "Image";) there appears to be some sort of side affect:
move the scroller all the way right, now double click the
GroupCaptionPlusMinusCell (show as blank), see that scroller returns to the starting position (all the way left).
Is there a way to avoid this behavior ?

3.Is there a way to make headers "unpushable", meaning that upon
click the cell wont draw "push" effect(see attached picture) ?


4.Upon clicking the modified GroupCaptionPlusMinusCell, a black frame appears around this cell, is there a way to remove this frame/border (see attached picture)?

5.See the attached picture of scroll bar, is there a syncfusion
scroller that can be customezed this way ?

6.In GGC, during query style info event is ther a way to reach
the actual control in cell such as checkbox,button, DropDownList
? If not, when (event) the actual control could be reached ?

7.In GGC is there a built in property which can tell me all present groups (like grid.....Groups) ?


10x for the help.



CodeAndPics_a8513f5.rar

Lingaraj S [Syncfusion]
Replied On January 21, 2010 04:50 AM

Hi Ruslan,

Thank you for your interest in Syncfusion products.

1. Try using HighlightFrozenLine property in Model.Options to achieve this functionality as shown below.

this.gridGroupingControl1.TableControl.Model.Options.HighlightFrozenLine = false;


2 &4 . Try using Enabled property to achieve this functionality as shown below.

this.gridGroupingControl1.TableDescriptor.Appearance.GroupCaptionPlusMinusCell.CellType = "Image";
this.gridGroupingControl1.TableDescriptor.Appearance.GroupCaptionPlusMinusCell.CellValue = SystemIcons.Question.ToBitmap();
this.gridGroupingControl1.TableDescriptor.Appearance.GroupCaptionPlusMinusCell.Enabled = false;


3. Try using Custom visual style to achieve this behavior as shown below.

this.gridGroupingControl1.TableModel.Options.GridVisualStyles = GridVisualStyles.Custom;
this.gridGroupingControl1.TableModel.Options.GridVisualStylesDrawing = new GridCustomThemHeader(GridVisualStyles.Custom);


5. Please try using below documentation to get more information about Tools product.
http://help.syncfusion.com/ug_74/toolswin/default.html

6. By default, GridGroupingControl does not allow to get a actual control in QueryCellStyleInfo event.

7. Try using Table.TopLevelGroup to find the present groups as shown below.

MessageBox.Show(GroupCount(this.gridGroupingControl1.Table.TopLevelGroup).ToString());

int GroupCount(Group gr)
{
int count = 0;
count+=gr.Groups.Count;
foreach (Group sgr in gr.Groups)
{
count += GroupCount(sgr);
}
return count;
}


Refer the modified sample from below link.
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=F-92123GGC_QuestionsMod649568874.zip

Please let me know if you have any queries.

Regards,
Lingaraj S.

Ruslan Gasanbekov
Replied On January 27, 2010 02:40 PM

10x for the help, it's very helpful.

Lingaraj S [Syncfusion]
Replied On January 28, 2010 05:09 AM

Hi Ruslan,

Thank you for the update.

Please let me know if it helps.

Regards,
Lingaraj S.

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.

;