I am using the Telerik RadGridView control to display data. In one screen I am using it without the rowstyleselector, in another I am using it with the rowstyleselector.
In the instance without the rowstyleselector, I use GridLinesVisibility="None"> and it works fine, the gridlines are gone.
But in the instance with the rowstyleselector, I use the following code, but the gridlines are still visible.
<Queue:TelephonyCallQueueRowStyleSelector.ConnectedToOtherStyle>
<Style TargetType="TelerikGridView:GridViewRow">
<Setter Property="Background">
<Setter.Value>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="Black" Offset="0.96"/>
<GradientStop Color="#FFBDFDBD" Offset="0.95"/>
</LinearGradientBrush>
</Setter.Value>
</Setter>
<Setter Property="Grid.ShowGridLines" Value="False" />
</Style>
</Queue:TelephonyCallQueueRowStyleSelector.ConnectedToOtherStyle>
Why won't the gridlines go away?
Thanks,
Wade
11 Answers, 1 is accepted
As I can see from the code snippet you provided, you are using the MS Grid's property - ShowGridLines.
As you know RadGridView has the GridLinesVisibility property, but I am afraid that you can not use it in your row's style since its targets the GridViewRow than RadGridView. May I ask you to share what is the exact result you would like to get?
Yoan
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
Thanks for your reply.
Wade
The possible solution would be to set GridView's GridLinesVisibility to None, but as I mentioned in my previous reply, you are not able to apply it through RowStyleSelector. You can define an explicit (using x:key) style instead. Then you can apply it to a RadGridView, like so :
<
Window.Resources
>
<
Style
x:Key
=
"MyGridStyle"
TargetType
=
"telerik:RadGridView"
>
<
Setter
Property
=
"GridLinesVisibility"
Value
=
"None"
/>
</
Style
>
</
Window.Resources
>
<
telerik:RadGridView
Name
=
"clubsGrid"
ItemsSource
=
"{Binding Clubs}"
Style
=
"{StaticResource MyGridStyle}"
/>
All the best,
Yoan
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
This is the row indicator of the RadGridView. You can control its visibility through RadGridView.RowIndicatorVisibility property.
Regards,
Yoan
Progress Telerik
In order to get familiar how to bind data to RadMultiColumnComboBox and edit it you can take a look at the Getting Started topic of the control. Can you please check it out? You can also take a look at the First Look WPF Demo of the control. Can you please clarify what you mean by adding the control to wpf DataGridView? If you refer to the UI for WPF RadGridView, we are currently working on exposing a GridViewMultiColumnComboBoxColumn from which you will be able to benefit.
Regards,
Stefan
Progress Telerik