Hi,
I use a RadGridView to display a collection of object. I use it for display only, no user input needed except for a button in the last column.
Why I use this control for such display and not a ListBox: a ListBox would require me to create an ItemTemplate but I need to keep constant columns width between my object properties so I can have a consistent alignment for all items. Also the columns should always be set to the largest control within it.
I remove most features that makes it look like a table:
<telerik:RadGridView x:Name="radGridView"
ItemsSource="{Binding Items}"
ShowColumnHeaders="False" ShowGroupPanel="False"
RowIndicatorVisibility="Collapsed"
AlternateRowBackground="Transparent"
AutoGenerateColumns="False"
GridLinesVisibility="None"
CanUserFreezeColumns="False" CanUserReorderColumns="False"
CanUserSelectColumns="False">
I also set CanUserSelect="False" and IsSynchronizedWithCurrentItem="False" but that didn't seem to work...
The last step would be to remove the selection and its display. I would like to remove the focus and color change when click on a row. I tried to set IsHitTestVisible = "False" but it prevent me to use my buttons in the last column..
Any suggestions ?
Thank you for your help