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.

I have some question for GridGroupingControl.

Thread ID:

Created:

Updated:

Platform:

Replies:

120255 Sep 14,2015 09:00 PM Sep 16,2015 01:40 AM Windows Forms 3
loading
Tags: GridGroupingControl
ligyste
Asked On September 14, 2015 09:00 PM

First,I'm sorry for my terrible English.

1、I want set GridGroupingControl's BackgroundImage,
gridGroupingControl1.BackgroundImage = Image.FromFile(@"C:\aaa.jpg");
But it Cannot show the image in the GridGroupingControl.

2、I want to froze Mutiple rows in a GridGroupingControl without group.
this.gridGroupingControl1.TableModel.Model.Rows.FrozenCount = 4;
it cannot work.
but I use Cols.FrozenCount.
this.gridGroupingControl1.TableModel.Model.Cols.FrozenCount = 5;
It could work.Why?

3、I set a gridGroupingControl1's DataSource to a DataTable.
DataTable Table;
gridGroupingControl1.DataSource =Table;
I want to set  UserControl to a column's dropdowncell ,so that user can only use the UserControl to change the cell's value in the column,could anyone give me  some examples?

4、
I have many GridGroupingControl cells' rowindex and columnindex in the same column。
for example (4,5),(8,5),(10,5)..........
I click a button,I want to use these cell's rowindex and columnindex to change these cells's  backcolor and font into a new style,
GridTableCellStyleInfo style=this.gridGroupingControl1.Table.GetTableCellStyle(rowindex, columnindex),
How should I do next?
thanks!


Adhikesevan Kothandaraman [Syncfusion]
Replied On September 15, 2015 08:41 AM

Hi ligyste,

Thanks for contacting Syncfusion support.

Query 1
I want set GridGroupingControl's BackgroundImage,
To set the background image for the gridgroupingcontrol, use the BackgroundImage property.
KB Link:
http://www.syncfusion.com/kb/4490/How-to-set-an-image-as-a-background-for-a-cell-in-GridGroupingControl
Query 2
I want to froze Mutiple rows in a GridGroupingControl without group.
this.gridGroupingControl1.TableModel.Model.Rows.FrozenCount = 4;
it cannot work.
but I use Cols.FrozenCount.
this.gridGroupingControl1.TableModel.Model.Cols.FrozenCount = 5;
It could work.Why?

It’s the default architectural behavior for GridGroupingControl. We cannot provide frozen rows because child groups doesn’t have the scrolling.
Query 3
I set a gridGroupingControl1's DataSource to a DataTable.
DataTable Table;
gridGroupingControl1.DataSource =Table;
I want to set  UserControl to a column's dropdowncell ,so that user can only use the UserControl to change the cell's value in the column,could anyone give me  some examples?

To place the custom control for the cell, use the Custom cell models and renderer. Refer to the below KB document to add the custom control in the column header cell.
 KB Link:
https://www.syncfusion.com/kb/704/how-can-i-place-a-usercontrol-in-the-header-cell-of-gridgroupingcontrol
Query 4
I click a button,I want to use these cell's rowindex and columnindex to change these cells's  backcolor and font into a new style,
GridTableCellStyleInfo style=this.gridGroupingControl1.Table.GetTableCellStyle(rowindex, columnindex),
How should I do next?

Please refer to the below KB document to set the CellValue and Font style for the GridGroupingControl.
KB Link:
https://www.syncfusion.com/kb/640/how-do-i-conditionally-set-the-format-of-a-single-cell-in-the-gridgroupingcontrol

Regards,
Adhi.

ligyste
Replied On September 15, 2015 08:19 PM

Thank you very much!

Ranjani Prabhakaran [Syncfusion]
Replied On September 16, 2015 01:40 AM

Hi Ligyste,
 
Thanks for the update.
 
Please let us know if you have any query.
 
Regards,
 
Ranjani

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.

;