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

How to input data directly in a column

1 Answer 19 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 22 Sep 2009, 07:46 AM
Hello,
I need my application to allow user to directly edit data in a column cell.
In the XAML file I have set IsReadOnly="False".
When the application runs if I double click on it or I press F2 key, the data contained disappears but it is impossible to input anything else.
If then I press ESC the old data reappears.
The column DataMemberPath is set to a Double value, or better, it is a SQL Server "money" data type, inclued in a LINQ data context.

What do I miss?

Thanks a lot in advance.

Nick

1 Answer, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 24 Sep 2009, 03:00 PM
Hi Nick,

You can try setting the DataType property of the GridViewDataColumn, which I think is not resolved well. Something like that:

xmlns:sys="clr-namespace:System;assembly=mscorlib" 
 
<telerik:GridViewDataColumn DataType={x:Type sys:Double} ... /> 

Hope this helps.
Let me know if you need further assistance.

All the best,
Nedyalko Nikolov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Nick
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Share this question
or