|
Query |
Response |
|
is it possible to have menus that allow the editing of all visual properties for each of the pivot controls to allow for creative editing at run-time |
The PivotGridControl properties can be modified at run time by usingPropertyGrid. The properties of PivotGrid can be set to PropertyGrid by using the SelectedObject property of PropertyGrid. Please refer to the below code and sample,
Code example
//To set the PropertyWindow
this.propertyGrid1.SelectedObject = this.pivotGridControl1;
|
|
as well as "turning off" the pivot functions to make it appear as though it is essentially a standard gridControl once the data has been set? |
You can disable the PropertyGrid where you want by using the Enabledproperty,
Code example
//To Disable the PropertyGrid
propertyGrid1.Enabled = false; |
|
I allow my users to load all of a controls properties in a propertiesGrid so that they can dynamically set the column header colors, gradients, font settings, and any other property available in order to create templates that they can then save to XML via serialization. |
We regret to let you know that the PivotGrid does not have the support to serialize/deserialize the data/style in to an Xml file. Already we have logged a feature report to provide support for Serialize/Deserialize in PivotGrid. This feature will be included in any of our upcoming release. |
|
//To set the back color for table
this.pivotGridControl1.TableModel.TableStyle.BackColor = Color.Aquamarine;
//To set the background image for table
//this.pivotGridControl1.TableControl.BackgroundImage = SystemIcons.Error.ToBitmap();
//To set the font for table
this.pivotGridControl1.TableModel.TableStyle.Font = new GridFontInfo(newFont("Monotype Corsiva", 10f));
//To draw the Border
this.pivotGridControl1.TableModel.TableStyle.Borders.Bottom = newGridBorder(GridBorderStyle.Solid);
//To draw the Border
this.pivotGridControl1.TableModel.TableStyle.Borders.Right = newGridBorder(GridBorderStyle.Solid); |