Article information
Article relates to
Q2 2012 SP2
Created by
Julian Benkov
Last modified
Stefan Stefanov
Last modified by
void
radGridView1_CurrentRowChanged(
object
sender, Telerik.WinControls.UI.CurrentRowChangedEventArgs e)
{
if
(e.CurrentRow !=
null
&& e.CurrentRow
is
GridViewDataRowInfo)
this
.radGridView2.DataSource = ((NwindDataSet.CategoriesRow)((DataRowView)e.CurrentRow.DataBoundItem).Row).GetProductsRows();
}
Private
Sub
ByVal
sender
As
Object
,
e
Telerik.WinControls.UI.CurrentRowChangedEventArgs)
If
Not
e.CurrentRow
Is
Nothing
AndAlso
TypeOf
GridViewDataRowInfo
Then
Me
.radGridView2.DataSource = (
CType
((
(e.CurrentRow.DataBoundItem, DataRowView)).Row, NwindDataSet.CategoriesRow)).GetProductsRows()
End
Resources Buy Try