I have a GridView that displays the data fine when in "AutoGenerateColumns" mode. Otherwise no data is present. The grid is databound to a List<> of business objects.
Here is the Markup
<
telerik:RadGridView
Grid.Row
=
"1"
HorizontalAlignment
=
"Left"
Margin
=
"8,8,0,0"
x:Name
=
"grdCustomerList"
VerticalAlignment
=
"Top"
Width
=
"Auto"
Height
=
"159"
AutoGenerateColumns
=
"False"
IsReadOnly
=
"True"
RowHeight
=
"28"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewColumn
Header
=
"Tenant DBA"
DataContext
=
"{Binding TenantDBA}"
Width
=
"180"
/>
<
telerik:GridViewColumn
Header
=
"Type"
Width
=
"120"
DataContext
=
"{Binding TenantContextType}"
/>
<
telerik:GridViewColumn
Header
=
"Region"
Width
=
"120"
DataContext
=
"{Binding Region}"
/>
<
telerik:GridViewColumn
Header
=
"Status"
Width
=
"120"
DataContext
=
"{Binding Status}"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
Here is the #CS
List<TenantCardView> tenantsConverted = TenantConverter.ConvertTenants(tenants);
grdCustomerList.ItemsSource = tenantsConverted;
Thanks,
Reid
(P.S) when you paste in formatted code you cannot bring the cursor back to the top to edit text outside the formatted code block.. I had to do this message over 3 times. The trick is to layout all your text first, then drop in the code blocks. :)