Hi - I have a RadGridView that is currently using binding to the items source in .xaml. I'd like to bind it in the code-behind instead, but can't seem to get the correct syntax.
Here is the iEnum:
And here is the .xaml
It's this that I'm trying to get in the C# code-behind:
Thanks for any help.
Here is the iEnum:
public IEnumerable<
ctrlDistrictByDemographics_Result
> DashboardDistrictByDemographics
{
get { return _spContext.ctrlDistrictByDemographics_Results; }
}
And here is the .xaml
<
telerik:RadGridView
AutoExpandGroups
=
"True"
x:Name
=
"chartDistrictByDemographics"
ItemsSource
=
"{Binding DashboardDistrictByDemographics}"
AutoGenerateColumns
=
"False"
IsReadOnly
=
"True"
CanUserFreezeColumns
=
"False"
CanUserSortColumns
=
"False"
IsFilteringAllowed
=
"False"
CanUserSelect
=
"False"
RowIndicatorVisibility
=
"Collapsed"
CanUserReorderColumns
=
"False"
CanUserResizeColumns
=
"False"
ShowGroupPanel
=
"False"
CanUserDeleteRows
=
"False"
>
ItemsSource
="{Binding DashboardDistrictByDemographics}"
Thanks for any help.