GGC Questions

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

3 Replies

LS Lingaraj S Syncfusion Team January 21, 2010 09:50 AM UTC

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.


RG Ruslan Gasanbekov January 27, 2010 07:40 PM UTC

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


LS Lingaraj S Syncfusion Team January 28, 2010 10:09 AM UTC

Hi Ruslan,

Thank you for the update.

Please let me know if it helps.

Regards,
Lingaraj S.

Loader.
Up arrow icon