This sample describes the cell formatting using a dialog instantiated through GridFormatCellDialog class.
Features:
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.
GridFormatCellDialog f = new GridFormatCellDialog(this.gridControl1); f.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.
Given below is an image of the sample.
Format Cells Dialog