Hello
- I have cell template with text block and button in grid Data column.
I need when the button clicked to copy the content of the cell to the cell below
Like control + D in excel.
How can I do this?
We are working MVVM, I add picture of the cell.
- How I Reach to specific cell in grid and change is value?
Best regards
Ehud
4 Answers, 1 is accepted
0
Hello Ehud Pinchas,
Rather than reaching the cell and changing the value , I would recommend to change the value in the data ( the business object ) directly. Assuming it implements INotifyPropertyChanged, RadGridView will sense the change and update the UI.
Here are some hints you may find helpful:
You may get the visible rows of RadGridView with a code like:
You can get access to the business object to be changed via the DataContext of the row , or via its Item property.
Kind regards,
Pavel Pavlov
the Telerik team
Rather than reaching the cell and changing the value , I would recommend to change the value in the data ( the business object ) directly. Assuming it implements INotifyPropertyChanged, RadGridView will sense the change and update the UI.
Here are some hints you may find helpful:
You may get the visible rows of RadGridView with a code like:
var rows = this.RadGridView1.ChildrenOfType<GridViewRow>();
You can get access to the business object to be changed via the DataContext of the row , or via its Item property.
Kind regards,
Pavel Pavlov
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0

Avi Avni
Top achievements
Rank 1
answered on 19 Dec 2010, 11:18 AM
Thanks
This information was helpful.
How I Reach to specific cell in grid and change is value?
I need to know what cell selected and change the cell below.
Is there sample code for this?
Best Regards
Ehud
0
Accepted
Hi Ehud Pinchas,
Maya
the Telerik team
I am sending you a sample project illustrating how to achieve the desired functionality.
Maya
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0

Avi Avni
Top achievements
Rank 1
answered on 20 Dec 2010, 06:05 PM
Thanks Maya
This helpful
Maybe you can help me with this issue?
http://www.telerik.com/community/forums/wpf/gridview/lookup-in-data-column.aspx
Best regards
Ehud