EditorCell Demo

EditorCell Demo illustrates the usage of different editor controls as celltypes in grid cells. You will learn how to place integer, double, percentage textboxes into cells.

Given below is an image of the sample.

Cell Types screenshot

Integer Textbox Cell

RegisterCellModel.GridCellType(this.gridControl1, CustomCellTypes.IntegerTextBox);
            
gridControl1[rowIndex, colIndex].CellType = CustomCellTypes.IntegerTextBox.ToString();  

Double TextBox cell

RegisterCellModel.GridCellType(this.gridControl1, CustomCellTypes.DoubleTextBox);

            
gridControl1[rowIndex, colIndex].CellType =  CustomCellTypes.DoubleTextBox.ToString();  

Percentage Textbox Cell

RegisterCellModel.GridCellType(this.gridControl1, CustomCellTypes.PercentTextBox);

            
gridControl1[rowIndex, colIndex].CellType = CustomCellTypes.PercentTextBox.ToString();