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

Help Please - how to get value of cell in GridView

2 Answers 122 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Siingh
Top achievements
Rank 2
Siingh asked on 03 Jun 2011, 06:59 AM
Hi All
I am new to WPF
i need your help so far i cant find any answer.

I want to get value of cell from GridView in codebehind lets say on MouseClick or PreparedCellForEdit routines.
Please give me example and column i have is DateTimePicker and i want bounded value when i click on it or while edit mode.

my Column
 
<telerik:GridViewDataColumn Header="In" UniqueName="TimeIn" DataMemberBinding="{Binding TimeIn}" DataFormatString="{} {0:dd-MMM-yyyy HH:mm tt}"  >
                                    <telerik:GridViewDataColumn.CellEditTemplate>
                                        <DataTemplate>
                                            <telerik:RadDateTimePicker Culture="en-GB" x:Name="btn"  SelectedDate="{Binding TimeIn}" TimeInterval="0:30:00" IsTooltipEnabled="False"/>
                                        </DataTemplate>
                                    </telerik:GridViewDataColumn.CellEditTemplate>
                                </telerik:GridViewDataColumn>

 



Help me please im struct on my code from last two days and cant find a way.

in Winforms its very easy to do but i cant a way to do in WPF.


Kind Regards:

2 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 03 Jun 2011, 12:47 PM
Hi Siingh,
You may find the answer here

 
All the best,

Pavel Pavlov
the Telerik team

 

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Siingh
Top achievements
Rank 2
answered on 03 Jun 2011, 03:42 PM
Hi Pavel
Thanks for reply but i need other help also i want to get value from cell in gridview e.g on some routine like mouse click or editbegin etc.

i wan to see the value from cell while mouseclick or editbegin routines.


Help me please thanks


Kind Regards:
Tags
GridView
Asked by
Siingh
Top achievements
Rank 2
Answers by
Pavel Pavlov
Telerik team
Siingh
Top achievements
Rank 2
Share this question
or