Hello Friends ,
I am using Wcf Ria Service to Bind grid.Suppose in my table only 1 recode is there.If I use following code to bind grid ,then it shows only 1 blank row.Data is not being display right now.
And if i set auto generate column to true and remove all columns from
XAML Code :
Code to Bind Grid :
Can anyone tell me how to solve this ?
-Thanks
I am using Wcf Ria Service to Bind grid.Suppose in my table only 1 recode is there.If I use following code to bind grid ,then it shows only 1 blank row.Data is not being display right now.
And if i set auto generate column to true and remove all columns from
<
telerik:RadGridView.Columns/
> collection,then after bind 1 row display properly with all data.
XAML Code :
<
telerik:RadGridView
Grid.Column
=
"1"
RowIndicatorVisibility
=
"Collapsed"
IsReadOnly
=
"True"
CanUserFreezeColumns
=
"False"
RowDetailsVisibilityMode
=
"Visible"
CanUserResizeColumns
=
"False"
x:Name
=
"grdUsre"
AutoGenerateColumns
=
"True"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Header
=
"First Name"
DataMemberBinding
=
"{Binding Path=FirstName}"
/>
<
telerik:GridViewDataColumn
Header
=
"Last Name"
DataMemberBinding
=
"{Binding LastName}"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
Code to Bind Grid :
TaskContext objTaskContext = new TaskContext();
grdUsre.ItemsSource = objTaskContext.Users;
objTaskContext.Load(objTaskContext.GetUsersQuery());
Can anyone tell me how to solve this ?
-Thanks