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

Problem copying a custom column

2 Answers 40 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Deborah
Top achievements
Rank 1
Deborah asked on 31 Jul 2013, 02:54 PM
Hi,
in my gridview I have defined a custom checkbox column:

<telerik:GridViewDataColumn Header="Visualizza"
                                               IsReadOnly="True"
                                               IsSortable="True"
                                               SortMemberPath="IsVisible">
                       <telerik:GridViewDataColumn.CellTemplate>
                           <DataTemplate>
                               <CheckBox IsChecked="{Binding IsVisible, Mode=TwoWay}"
                                         IsEnabled="{Binding IsModifiable, Mode=TwoWay}"
                                         Click="CheckBox_Click"></CheckBox>
                           </DataTemplate>
                       </telerik:GridViewDataColumn.CellTemplate>
                   </telerik:GridViewDataColumn>

If I copy a cell and then paste it to excel, instead to get the value of "IsVisible" property I get the name of the object's class.
How can I solve this problem?
Thank you very much.

2 Answers, 1 is accepted

Sort by
0
Accepted
Vera
Telerik team
answered on 02 Aug 2013, 03:44 PM
Hi Deborah,

What you can do is to bind GridViewDataColumn as well.

<telerik:GridViewDataColumn Header="Visualizza"
                                            IsReadOnly="True"
                                            IsSortable="True"
                                            SortMemberPath="IsVisible"
                                            DataMemberBinding="{Binding IsVisible}">



Regards,
Vera
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Deborah
Top achievements
Rank 1
answered on 20 Aug 2013, 07:40 AM
Thank you very much Vera, it works!
Tags
GridView
Asked by
Deborah
Top achievements
Rank 1
Answers by
Vera
Telerik team
Deborah
Top achievements
Rank 1
Share this question
or