This sample describes the cell formatting using a dialog instantiated through GroupingGridFormatCellDialog class.
Features:
Cell Formating:
It simulates the "Format Cells" dialog of Microsoft Excel that is used to format the contents of the cell
It contains numerous options for applying styles to various cell attributes, such as cell background, font, text color, alignment, and text format. This dialog can be instantiated through the below code.
GroupingGridFormatCellDialog dialog = new GroupingGridFormatCellDialog(this.gridGroupingControl1); dialog.ShowDialog();
A reference to GridHelperClasses namespace should be added to use the above given code.
In the sample, right click on cell and click the menu item displayed. Now, FormatCellDialog opens. Select the required tab and apply styles to that cell.
Cell Current Cell Navigation:
When the enter key is pressed the current cell can be navigated in any direction, by customizing the Enter key behavior property.
Given below is an image of the sample.
gridGroupingControl1.TableModel.Options.EnterKeyBehavior = GridDirectionType.Left;
Similarly wrapcellbehavior support is used to wrap the current cell based on enter key directiontype.
this.gridGroupingControl1.TableModel.Options.WrapCellBehavior = GridWrapCellBehavior.WrapGrid;
Format Cells Dialog