Skip to content

Commit 30d97b5

Browse files
ES-975464 - Updated the image
1 parent db24a0b commit 30d97b5

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

FormattedDoubleTextBox.png

297 KB
Loading

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# How to format the doubletextbox cell in winforms gridcontrol
1+
# How to Format the DoubleTextbox Cell in WinForms GridControl?
22

33
This example demonstrates how to format the doubletextbox cell in [WinForms GridControl](https://www.syncfusion.com/winforms-ui-controls/grid-control).
44

5-
By default, the value “0” will be displayed as 0.00 in the [DoubleTextBox](https://help.syncfusion.com/windowsforms/grid-control/enhanced-cell-types#doubletextbox-cell-type) cell. To customize the display format of cell value, use the [DisplayText](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Grid.GridDrawCellDisplayTextEventArgs.html#Syncfusion_Windows_Forms_Grid_GridDrawCellDisplayTextEventArgs_DisplayText) property in [DrawCellDisplayText](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Grid.GridControlBase.html#Syncfusion_Windows_Forms_Grid_GridControlBase_DrawCellDisplayText) event.
5+
By default, the value "0" will be displayed as "0.00" in the [DoubleTextBox](https://help.syncfusion.com/windowsforms/grid-control/enhanced-cell-types#doubletextbox-cell-type) cell. To customize the display format of cell value, use the [DisplayText](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Grid.GridDrawCellDisplayTextEventArgs.html#Syncfusion_Windows_Forms_Grid_GridDrawCellDisplayTextEventArgs_DisplayText) property in [DrawCellDisplayText](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Grid.GridControlBase.html#Syncfusion_Windows_Forms_Grid_GridControlBase_DrawCellDisplayText) event.
66

77
``` c#
88
//Event Subscription
@@ -16,4 +16,8 @@ private void GridControl1_DrawCellDisplayText(object sender, GridDrawCellDisplay
1616
e.DisplayText = "0";
1717
}
1818
}
19-
```
19+
```
20+
21+
The screenshot below illustrates the format of grid cells.
22+
23+
![GridControl with formatted DoubleTextbox](FormattedDoubleTextBox.png)

0 commit comments

Comments
 (0)