Hi,
I've got a RadGridView specified like this:
<telerik:RadGridView
ItemsSource="{Binding MyDataSource}"
AutoGenerateColumns="True"
IsReadOnly="True"
CanUserSelect="False"
IsSynchronizedWithCurrentItem="False"
SelectionMode="Multiple">
<telerik:RadGridView.Columns>
<telerik:GridViewSelectColumn />
</telerik:RadGridView.Columns>
</telerik:RadGridView>
As you can see I have AutoGenerateColumns set to True but then I add a GridViewSelectColumn manually. Is it somehow possible using DisplayIndex attribute on columns or otherwise to specify the index of manually added columns when also having AutoGenerateColumns equal to True?
In this specific situation I would like to get the GridViewSelectColumn as the last column. I know I can manually add all the columns I want and then order them as I desire but as I'm using a special presentation entity class where I want all fields in that class to show up in the grid it would have been easy just to leave AutoGenerateColumns on.
Tomas
I've got a RadGridView specified like this:
<telerik:RadGridView
ItemsSource="{Binding MyDataSource}"
AutoGenerateColumns="True"
IsReadOnly="True"
CanUserSelect="False"
IsSynchronizedWithCurrentItem="False"
SelectionMode="Multiple">
<telerik:RadGridView.Columns>
<telerik:GridViewSelectColumn />
</telerik:RadGridView.Columns>
</telerik:RadGridView>
As you can see I have AutoGenerateColumns set to True but then I add a GridViewSelectColumn manually. Is it somehow possible using DisplayIndex attribute on columns or otherwise to specify the index of manually added columns when also having AutoGenerateColumns equal to True?
In this specific situation I would like to get the GridViewSelectColumn as the last column. I know I can manually add all the columns I want and then order them as I desire but as I'm using a special presentation entity class where I want all fields in that class to show up in the grid it would have been easy just to leave AutoGenerateColumns on.
Tomas