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

[Solved] Access an element in the datagrid

1 Answer 91 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
JungTae
Top achievements
Rank 1
JungTae asked on 01 Nov 2010, 07:02 PM
I am currently using a column with RadComboBox in your RadGridView in Silverlight 3. I need to know how to access all comboboxes in the datagrid from the following event handler. Is this possible if so, how would you do it?
this code

var

 

row = ((RadComboBox)sender).ParentOfType<GridViewRow>();

 

did not help since  the sender had a null value for the parent property

SelectionChanged(

object sender, Telerik.Windows.Controls.SelectionChangedEventArgs e)
{
}

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 02 Nov 2010, 09:55 AM
Hi JungTae,

Please give us more details about your exact requirements. Basically, it is not recommended to work with the visual elements like rows, cells, comboBox-es, etc., as due to virtualization, you may get undesired behavior and results. It is better to work directly with the underlaying data and the corresponding properties.
So, in order to provide you with the most appropriate suggestion, any additional information would be helpful.
 

Kind regards,
Maya
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
Tags
GridView
Asked by
JungTae
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or