This is a migrated thread and some comments may be shown as answers.

telerik GridView cell allow only numbers

1 Answer 668 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 08 Feb 2013, 01:42 PM
hello,

I am using telerik GridView on application development,  i tried to format specific cells of the gridview so to allow only numbers when editing , i can't find how to do that , i look into the properties of the gridview but cant't find any way to do that.
 can you help me on that?

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 13 Feb 2013, 09:34 AM
Hi Chris,

Thank you for writing.

RadGridView offers a specific type of column which will allow entering only numbers in its cells. Please refer to this documentation article for more information: http://www.telerik.com/help/winforms/gridview-columns-gridviewdecimalcolumn.html.

Alternatively, if you want to do that on per cell basis, you can replace the default editor with custom one. An sample is available here: http://www.telerik.com/help/winforms/gridview-editors-using-custom-editors.html. For example, you can replace the desired cell's editor with GridSpinEditor when needed. Also note that the data in the cell should be compatible with the editor used.

I hope this helps.

All the best,
Stefan
the Telerik team
Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Tags
GridView
Asked by
Chris
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or