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

Copy Cell Below

4 Answers 39 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Avi Avni
Top achievements
Rank 1
Avi Avni asked on 16 Dec 2010, 03:24 PM

Hello

  1. 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.

 

  1. How I Reach to specific cell in grid and change is value?

Best regards

Ehud

 

 

4 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 17 Dec 2010, 09:51 AM
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:
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
Maya
Telerik team
answered on 20 Dec 2010, 05:44 PM
Hi Ehud Pinchas,

I am sending you a sample project illustrating how to achieve the desired functionality.
 

Kind regards,
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

 

Tags
GridView
Asked by
Avi Avni
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Avi Avni
Top achievements
Rank 1
Maya
Telerik team
Share this question
or