Skip to content

Commit 62e3714

Browse files
ES-975464 - Included the Images
1 parent d383e50 commit 62e3714

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

CustomizedMessageTip.png

10.8 KB
Loading

MessageTipForAllRowsAndColumns.png

9.09 KB
Loading
10 KB
Loading

MessageTipUsingQueryCellInfo.png

9.5 KB
Loading

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# WPF GridControl input message
1+
# WPF GridControl Input Message
22

3-
This repository contains the samples that demonstrates various options in input message feature of [WPF GridControl](https://help.syncfusion.com/wpf/gridcontrol/overview).
3+
This repository contains the samples that demonstrates various options in input message feature of [WPF GridControl](https://www.syncfusion.com/wpf-controls/excel-like-grid).
44

55
### Input Message Tip for row and column
66

@@ -16,6 +16,8 @@ grid.Model.ColStyles[1].DataValidationTooltip = "Hello";
1616
grid.Model.ColStyles[1].ShowDataValidationTooltip = true;
1717
```
1818

19+
![Set message tip for all the rows and columns](MessageTipForAllRowsAndColumns.png)
20+
1921
An another way to set the input message tip for specific row and column.
2022

2123
``` csharp
@@ -36,6 +38,8 @@ for (int i = 1; i <= 4; i++)
3638
}
3739
```
3840

41+
![Set message tip for specific row and column](MessageTipForSpecificRowsAndColumns.png)
42+
3943
### Set Input Message Tip using QueryCellInfo event
4044

4145
You can set the input message tip for specific cell or row or column by using [QueryCellInfo](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Grid.GridModel.html#Syncfusion_Windows_Controls_Grid_GridModel_QueryCellInfo) event.
@@ -59,6 +63,8 @@ private void Grid_QueryCellInfo(object sender, Syncfusion.Windows.Controls.Grid.
5963
}
6064
```
6165

66+
![Defined message tip using QueryCellInfo event](MessageTipUsingQueryCellInfo.png)
67+
6268
### Customize the Input Message Tip
6369

6470
The input message tip can be customized by defining DataTemplate. The DataTemplate can be assigned to the [GridStyleInfo.DataValidationTooltipTemplateKey](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Grid.GridStyleInfo.html#Syncfusion_Windows_Controls_Grid_GridStyleInfo_DataValidationTooltipTemplateKey) property. If you are using inputTextmessage1 then you need to assign template to its corresponding template key property namely `GridStyleInfo.DataValidationTooltipTemplateKey`.
@@ -93,4 +99,6 @@ private void Grid_QueryCellInfo(object sender, Syncfusion.Windows.Controls.Grid.
9399
e.Style.DataValidationTooltipTemplateKey = "inputTextmessage1";
94100
}
95101
}
96-
```
102+
```
103+
104+
![Gridcontrol with customized message tipi](CustomizedMessageTip.png)

0 commit comments

Comments
 (0)