Remove gridlines on rowstyleselection

12 posts, 0 answers
  1. Wade
    Wade avatar
    22 posts
    Member since:
    Dec 2012

    Posted 09 Jan 2013 Link to this post

    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
  2. Yoan
    Admin
    Yoan avatar
    1197 posts

    Posted 11 Jan 2013 Link to this post

    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.

  3. Wade
    Wade avatar
    22 posts
    Member since:
    Dec 2012

    Posted 11 Jan 2013 Link to this post

    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
  4. Yoan
    Admin
    Yoan avatar
    1197 posts

    Posted 16 Jan 2013 Link to this post

    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.

  5. Wade
    Wade avatar
    22 posts
    Member since:
    Dec 2012

    Posted 17 Jan 2013 Link to this post

    Thanks, for the help. We have decided to go a different rout that doesn't use the rowstyleselector.
  6. ranees
    ranees avatar
    117 posts
    Member since:
    Nov 2018

    Posted 12 Dec 2018 Link to this post

    How to disable this one ?
  7. Yoan
    Admin
    Yoan avatar
    1197 posts

    Posted 13 Dec 2018 Link to this post

    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.
  8. ranees
    ranees avatar
    117 posts
    Member since:
    Nov 2018

    Posted 14 Dec 2018 Link to this post

    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
  9. ranees
    ranees avatar
    117 posts
    Member since:
    Nov 2018

    Posted 14 Dec 2018 Link to this post

    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
  10. ranees
    ranees avatar
    117 posts
    Member since:
    Nov 2018

    Posted 14 Dec 2018 Link to this post

    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
  11. ranees
    ranees avatar
    117 posts
    Member since:
    Nov 2018

    Posted 14 Dec 2018 Link to this post

    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
  12. Stefan
    Admin
    Stefan avatar
    1073 posts

    Posted 18 Dec 2018 Link to this post

    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.
Back to Top