This is a migrated thread and some comments may be shown as answers.

Remove gridlines on rowstyleselection

11 Answers 114 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Wade
Top achievements
Rank 1
Wade asked on 09 Jan 2013, 05:12 PM
Greetings.

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

Sort by
0
Yoan
Telerik team
answered on 11 Jan 2013, 02:16 PM
Hi Wade,

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?

Regards,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Wade
Top achievements
Rank 1
answered on 11 Jan 2013, 06:12 PM
I have two screens that use the radgridview, but one uses rowstyleselection and one does not. In the one that doesn't I can remove the gridlines without issue. The issue I'm having is with the radgridview that uses the rowstyleselection. I have attached a screenshot so you can see the difference. The desired effect is that I have no grid lines.

Thanks for your reply.

Wade
0
Yoan
Telerik team
answered on 16 Jan 2013, 01:59 PM
Hello 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.

0
Wade
Top achievements
Rank 1
answered on 17 Jan 2013, 10:35 PM
Thanks, for the help. We have decided to go a different rout that doesn't use the rowstyleselector.
0
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 13 Dec 2018, 04:35 AM
How to disable this one ?
0
Yoan
Telerik team
answered on 13 Dec 2018, 03:40 PM
Hello,

This is the row indicator of the RadGridView. You can control its visibility through RadGridView.RowIndicatorVisibility property.

Regards,
Yoan
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 14 Dec 2018, 06:07 AM
hello how to add multi column combo box to wpf datagridview ? and how to bind default value into it ? iwant make it editable too,,please help
0
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 14 Dec 2018, 06:08 AM
hello how to add multi column combo box to wpf datagridview ? and how to bind default value into it ? i want to make it editable too,,please help
0
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 14 Dec 2018, 06:09 AM
hello how to add multi column combo box to wpf datagridview ? and how to bind default value into it ? i want to make it editable too,,please help
0
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 14 Dec 2018, 06:09 AM
hello how to add multi column combo box to wpf datagridview ? and how to bind default value into it ? iwant make it editable too,,please help
0
Stefan
Telerik team
answered on 18 Dec 2018, 05:28 PM
Hello,

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
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
Wade
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Wade
Top achievements
Rank 1
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
Stefan
Telerik team
Share this question
or