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

Equivilant to SL Toolkit datagrid control methode DataGridRow.GetrowcontainingElement()

1 Answer 117 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.
Ole
Top achievements
Rank 1
Ole asked on 20 Aug 2010, 12:04 PM
Hi,

I am migrating an existing silverlight toolkit datagrid to a radgridview.

In the detailsrow  in the datagrid I have a combobox which gets populated on the fly to get realtime values.

like this

 

 

private void cmbRelatedMartSerial_Loaded(object sender, RoutedEventArgs e)

 

{

 

 

ComboBox curCombo = (ComboBox)sender;

 

dataGridRow btnRow =

 

DataGridRow.GetRowContainingElement(curCombo);
// code to populate the combobox, which depend on btnrow.

How do I convert the line DataGridRow.GetRowContainingElement(curCombo);  into a radgridview methode.
Or a work around etc.

Thanks

Ole Rönne

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 20 Aug 2010, 12:14 PM
Hello Ole,

You can use our extension methods - in this case ParentOfType<>(). Here is an example:

var curCombo = (ComboBox)sender;
var row = curCombo.ParentOfType<GridViewRow>();

All the best,
Vlad
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
Ole
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or