Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions WindowsForms/GridGrouping/Conditional-Formatting.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
layout: post
title: Conditional Formatting in Windows Forms GridGrouping | Syncfusion
description: Learn about Conditional Formatting support in Syncfusion Windows Forms GridGrouping control, its elements and more details.
platform: WindowsForms
platform: windowsforms
control: GridGrouping
documentation: ug
---

# Conditional Formatting in Windows Forms GridGrouping
GridGroupingControl provides built-in support for Conditional Formatting. It is used to format grid cells based on a certain conditions. The conditional formatting can be added to the GridGroupingControl by defining the [GridConditionalFormatDescriptor](http://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Grid.Grouping.GridConditionalFormatDescriptor.html). This descriptor is used to specify the filter criteria for the cells and the style to be applied for filtered cells.
GridGroupingControl provides built-in support for Conditional Formatting. It is used to format grid cells based on a certain conditions. The conditional formatting can be added to the GridGroupingControl by defining the [GridConditionalFormatDescriptor](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Grid.Grouping.GridConditionalFormatDescriptor.html). This descriptor is used to specify the filter criteria for the cells and the style to be applied for filtered cells.

The following steps are used to add the conditional formatting through the editor,

Expand Down Expand Up @@ -89,7 +89,7 @@ N> The conditional formatting is implemented in the following dashboard sample,
<Install_Location>\Syncfusion\EssentialStudio\[Version_Number]\Windows\Grid.Grouping.Windows\Samples\Styling and Formatting\Conditional Formatting Demo

## Formatting Preview Rows
The appearance of the record [preview ](http://help.syncfusion.com/windowsforms/gridgrouping/faq/layout-and-appearance/how-to-set-texts-in-the-preview-record)row can be customized by using the conditional formatting.
The appearance of the record [preview ](https://help.syncfusion.com/windowsforms/gridgrouping/faq/layout-and-appearance/how-to-set-texts-in-the-preview-record)row can be customized by using the conditional formatting.

{% tabs %}
{% highlight c# %}
Expand Down Expand Up @@ -165,7 +165,7 @@ After applying the conditional formatting the color will be changed for the reco
![Conditional-Formatting_img8](Conditional-Formatting_images/Conditional-Formatting_img8.png)

## Dynamic Formatting
The cells can be formatted dynamically based on the given condition by using the [QueryCellStyleInfo](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Grid.Grouping.GridEngine.html) event. The appearance of the cells can be changed dynamically by using this formatting.
The cells can be formatted dynamically based on the given condition by using the [QueryCellStyleInfo](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Grid.Grouping.GridEngine.html#Syncfusion_Windows_Forms_Grid_Grouping_GridEngine_QueryCellStyleInfo) event. The appearance of the cells can be changed dynamically by using this formatting.

{% tabs %}
{% highlight c# %}
Expand Down Expand Up @@ -198,7 +198,7 @@ Data bar is an Excel Inspired Data bar which is used to visualize the negative a
![Data-Bar_img1](Data-Bar_images/Data-Bar_img1.png)

The following steps can be followed to add the data bar through the editor,
1.Navigate the Property window of GridGroupingControl to the **TableDescriptor** -> **ConditionalFormats** and click the browse button to open the [GridConditionalFormatDescriptor](http://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Grid.Grouping.GridConditionalFormatDescriptor.html) collection editor.
1.Navigate the Property window of GridGroupingControl to the **TableDescriptor** -> **ConditionalFormats** and click the browse button to open the [GridConditionalFormatDescriptor](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Grid.Grouping.GridConditionalFormatDescriptor.html) collection editor.

![Data-Bar_img2](Data-Bar_images/Data-Bar_img2.png)

Expand All @@ -210,7 +210,7 @@ Then, Navigate into the `GridConditionalFormatDescriptor` collection editor wind

N> Data bar can also be drawn without expression.

3.Choose the rule type as `DataBar` and click `Add` button, it will add a new[ConditionalFormatDataBarRule](http://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Grid.Grouping.ConditionalFormatDataBarRule.html) to the [ConditionalFormatRuleBaseCollection](http://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Grid.Grouping.ConditionalFormatRuleBaseCollection.html). Set the column name and style for data bar rule.
3.Choose the rule type as `DataBar` and click `Add` button, it will add a new[ConditionalFormatDataBarRule](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Grid.Grouping.ConditionalFormatDataBarRule.html) to the [ConditionalFormatRuleBaseCollection](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Grid.Grouping.ConditionalFormatRuleBaseCollection.html). Set the column name and style for data bar rule.

![Data-Bar_img4](Data-Bar_images/Data-Bar_img4.png)

Expand Down Expand Up @@ -331,7 +331,7 @@ dataBarRule.NegativeBar.BorderColor = Color.Red
The border color, fill color and fill style can be changed for positive and negative bars. The fill style can be `Solid` or `Gradient`.

#### Applying Solid color
To apply solid fill color for data bars, it is necessary to choose [ConditionalFormatDataBarRule.FillStyle](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Grid.Grouping.BarStyleInfo.html#Syncfusion_Windows_Forms_Grid_Grouping_BarStyleInfo_FillStyle) as `Solid` from [FillStyle](http://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Grid.Grouping.FillStyle.html) option.
To apply solid fill color for data bars, it is necessary to choose [ConditionalFormatDataBarRule.FillStyle](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Grid.Grouping.BarStyleInfo.html#Syncfusion_Windows_Forms_Grid_Grouping_BarStyleInfo_FillStyle) as `Solid` from [FillStyle](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Grid.Grouping.FillStyle.html) option.

{% tabs %}
{% highlight c# %}
Expand Down
2 changes: 1 addition & 1 deletion WindowsForms/Visual-Studio-Integration/Item-Template.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ The following steps will guide you in adding the Syncfusion WinForms components

![Syncfusion WinForms Item template Gallery](Item-Template-images/Add-syncfusion-item-details.png)

9. Then, Syncfusion licensing registration required message box will be shown if you installed the trial setup or NuGet packages since Syncfusion introduced the licensing system from 2018 Volume 2 (v16.2.0.41) Essential Studio release. Navigate to the [help topic](https://help.syncfusion.com/common/essential-studio/ licensing/license-key#how-to-generate-syncfusion-license-key), which is shown in the licensing message box to generate and register the Syncfusion license key to your project. Refer to this [blog](https://blog.syncfusion.com/post/Whats-New-in-2018-Volume-2-Licensing-Changes-in-the-1620x-Version-of-Essential-Studio.aspx) post for understanding the licensing changes introduced in Essential Studio.
9. Then, Syncfusion licensing registration required message box will be shown if you installed the trial setup or NuGet packages since Syncfusion introduced the licensing system from 2018 Volume 2 (v16.2.0.41) Essential Studio release. Navigate to the [help topic](https://help.syncfusion.com/common/essential-studio/licensing/overview#how-to-generate-syncfusion-license-key), which is shown in the licensing message box to generate and register the Syncfusion license key to your project. Refer to this [blog](https://www.syncfusion.com/blogs/post/whats-new-in-2018-volume-2.aspx) post for understanding the licensing changes introduced in Essential Studio.

![Syncfusion WinForms Item template Gallery](Item-Template-images/Syncfusion-Item-Template-Gallery-7.png)