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

New GridViewDecimal Column

1 Answer 29 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Russell Groover
Top achievements
Rank 1
Russell Groover asked on 24 Mar 2008, 01:50 PM
Is there a way to have a GridView Decimal column not use the RadSpinEditor?  I'd like for the user to just enter values into a text box and the up/down spin editor might be confusing for them.

1 Answer, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 25 Mar 2008, 12:28 PM
Hello Russell Groover,

Thank you for writing.

We plan to change the default instance of the decimal column in RadGridView to GridViewTextBoxColumn. We will address this in our next release Q1 2008. Currently, to workaround this, you could change the generated GridViewDecimalColumn with GridViewTextBoxColumn.

Please take a look to code-block provided below as reference:

GridViewTextBoxColumn textColumn = new GridViewTextBoxColumn();  
textColumn.HeaderText = "Header";  
textColumn.DataField = "Column name";  
 
this.radGridView1.MasterGridViewTemplate.Columns.Remove(this.radGridView1.MasterGridViewTemplate.Columns[0]);  
this.radGridView1.MasterGridViewTemplate.Columns.Insert(0, textColumn); 

I hope this was helpful. Do not hesitate to contact me again if you need additional assistance.

All the best,
Martin Vasilev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Russell Groover
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
Share this question
or