Home Forums WinForms controls Xceed Grid for WinForms how change value about to edit in GridNumericTextbox? Reply To: how change value about to edit in GridNumericTextbox?

User (Old forums)
Member
Post count: 23064

First add a second constructor like this:<code>public GridPercentageTextBox(Xceed.Grid.ICellEditor editor)
{
this.editor = editor;
}</code>Then you can just do this: <code>Xceed.Grid.Editors.GridNumericTextBox numEdit = new Xceed.Grid.Editors.GridNumericTextBox();
GridPercentageTextBox pctEdit = new GridPercentageTextBox(numEdit);</code>
Use <b>numEdit</b> to access the properties, and use <b>pctEdit</b> as the cell editor.

Imported from legacy forums. Posted by Tommy (had 142 views)