in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

VisualStyle

Last post 06-23-2008 4:42 PM by C1_JohnF. 21 replies.
Page 1 of 2 (22 items) 1 2 Next >
Sort Posts: Previous Next
  • 09-05-2007 11:55 AM

    VisualStyle

    Hi, when I set grid.VisualStyle = C1.Win.C1TrueDBGrid.VisualStyle.Office2007Silver (or any other Office2007 enum) selected rows have no backcolor ... no user feedback about selected rows ... it's a bug or I don't understand VisualStyle behavior?

    VisualStyle is very usefull but user has to see which and how many rows are selected.

    Many thanks.
    Regards.

    Silvano Rinaudo
    WEST CONSULTING C.A.

  • 10-02-2007 5:27 PM In reply to

    Re: VisualStyle

    Hello Silvano,
     
    Please know that Visual Style is just to set the look and feel of the control on the form. Rest of the functionality remains the same and would be handled in the same way as usual. Please write back if you are specifically looking for something else.
     
    Regards,
    Patrick
    <westconsulting> wrote in message news:198167@10.0.1.98...

    Hi, when I set grid.VisualStyle = C1.Win.C1TrueDBGrid.VisualStyle.Office2007Silver (or any other Office2007 enum) selected rows have no backcolor ... no user feedback about selected rows ... it's a bug or I don't understand VisualStyle behavior?

    VisualStyle is very usefull but user has to see which and how many rows are selected.

    Many thanks.
    Regards.

    Silvano Rinaudo
    WEST CONSULTING C.A.



    http://helpcentral.componentone.com/cs/forums/p/73015/198167.aspx#198167

  • 10-03-2007 1:48 PM In reply to

    Re: VisualStyle

    I have noticed this behavior as well, at first I though I was just doing something wrong, but after seeing this post I tested the following and found that when the Visual style on a True DB Grid is set to a 2007 style, the SelectedStyle.BackColor property is always desplaying as solid white. Below is the code where I am settting the style but it does not display correctly:

    MyGrid.VisualStyle = C1.Win.C1TrueDBGrid.VisualStyle.Office2007Blue;

    MyGrid.SelectedStyle.BackColor = Config.clrGridSelect;

    MyGrid.SelectedStyle.BackColor2 =
    Color.White;

    MyGrid.SelectedStyle.GradientMode = GradientModeEnum.Vertical;

    When I switched the visual style back to system (MyGrid.VisualStyle = C1.Win.C1TrueDBGrid.VisualStyle.System;), then my SelectedStyle effects worked once agian.

    Any thoughts on how this can be fixed or is this a bug?

  • 10-03-2007 6:20 PM In reply to

    Re: VisualStyle

    Could you please post a sample, I would be more then happy to have a look.
     
    Regards,
    Patrick.
    <jwerner8> wrote in message news:198834@10.0.1.98...

    I have noticed this behavior as well, at first I though I was just doing something wrong, but after seeing this post I tested the following and found that when the Visual style on a True DB Grid is set to a 2007 style, the SelectedStyle.BackColor property is always desplaying as solid white. Below is the code where I am settting the style but it does not display correctly:

    MyGrid.VisualStyle = C1.Win.C1TrueDBGrid.VisualStyle.Office2007Blue;

    MyGrid.SelectedStyle.BackColor = Config.clrGridSelect;

    MyGrid.SelectedStyle.BackColor2 =
    Color.White;

    MyGrid.SelectedStyle.GradientMode = GradientModeEnum.Vertical;

    When I switched the visual style back to system (MyGrid.VisualStyle = C1.Win.C1TrueDBGrid.VisualStyle.System;), then my SelectedStyle effects worked once agian.

    Any thoughts on how this can be fixed or is this a bug?



    http://helpcentral.componentone.com/cs/forums/p/73015/198834.aspx#198834

  • 10-12-2007 11:49 AM In reply to

    Re: VisualStyle

    I attach a very, very simple VB project.

    I will appreciate if a work-around is there.

    Thanks

  • 10-25-2007 5:26 AM In reply to

    Re: VisualStyle

    Apologies to be repliying so late. Please know that I can change the back color of the grid area but that is not something dependent on Visual Style property.
     
    There is seperate style Object that implements the back color property. I would request you to have a look at the attached application:
    Private Sub chkVisualStyle_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles chkVisualStyle.CheckedChanged

    If chkVisualStyle.Checked Then

    TDBGrid.VisualStyle = C1.Win.C1TrueDBGrid.VisualStyle.Office2007Silver

    TDBGrid.Style.BackColor = Color.Aqua

    Else

    TDBGrid.VisualStyle = C1.Win.C1TrueDBGrid.VisualStyle.System

    TDBGrid.Style.BackColor = Color.LightCyan

    End If

    End Sub

    ~Allen Smith

    <westconsulting> wrote in message news:198996@10.0.1.98...

    I attach a very, very simple VB project.

    I will appreciate if a work-around is there.

    Thanks



    http://helpcentral.componentone.com/cs/forums/p/73015/198996.aspx#198996

  • 10-26-2007 9:37 AM In reply to

    I'm not sure that fully represents the issue. I have edited the sample project to try to make the problem more clear. Notice the Selected Row style is not being rendered when the 2007 visual style is selected, but it works fine when the system visual style is used. Any help with this would be greatly appriciated as the selection just being in white does not stand out / help my users all that much.

    I'm just curious, are there any other C1 users reading this who have experienced the same issue (or that is works fine for)? I am using TrueDB Grid version 2.0.20072.61122.

    Thanks!

  • 10-30-2007 9:13 PM In reply to

    Re: VisualStyle

    I've noticed the same behavior, and it's rather frustrating. 

  • 11-11-2007 12:28 PM In reply to

    Re: VisualStyle

    Thanks Allen, but I cannot tell this is a solution.

    Problem is not to have a background color for grid and so have another backcolor on selected rows.
    In my opinion it's important when setting VisualStyle to an Office-style to have same behavior as System style.
    I don't understand how other TrueDBGrid users/programmers can work with their end-users in this case.
    (I'm using C1TrueDBGrid version 2.0.20072.61125)

    Many thanks.

    Silvano Rinaudo

  • 11-12-2007 4:15 PM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 483

    Re: VisualStyle

    Hi Silvano,

    I've tested this issue and submitted it to our development team for a fix. I will update you here when I see it's been resolved.

     

    Thanks
    -Greg

    Issue ID: VNTDG001070

  • 11-30-2007 1:57 PM In reply to

    Re: VisualStyle

    greglutz:

    Hi Silvano,

    I've tested this issue and submitted it to our development team for a fix. I will update you here when I see it's been resolved.

     

    Thanks
    -Greg

    Issue ID: VNTDG001070

     I was just wondering if this issue has been resolved with the new 2007v3 updates. Thanks.

  • 12-03-2007 3:07 PM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 483

    Re: VisualStyle

    This issue is not fixed in the 2007 v3 update.

    Regards,
    Greg L

  • 12-04-2007 6:20 AM In reply to

    Re: VisualStyle

    Hi,

    I am Jeneesh. I am at first time for this componentOne.

    i also have this same problem for identifying the selected rows.

    How can i solve this...

    Plz help me..............

    Thanks in advance......

     

    My id : jeneeshijk@yahoo.com

    or you can contact me on

    jeneesh.kv@eteamindia.com..

    Filed under:
  • 12-04-2007 8:08 AM In reply to

    Re: VisualStyle

    thank you, i got d soln for multiselect for grid....

    MyGrid.SelectedStyle.BackColor2 = Color.White;

    MyGrid.SelectedStyle.GradientMode = GradientModeEnum.Vertical;

    for that we need to set the gradientMode=vertical/horizontal....etc ( but not select none)

  • 12-14-2007 8:55 AM In reply to

    Re: VisualStyle

    Hi, I have a workaround to highlight selected rows:

    Grid.SelectedStyle.BackgroundImage = <an image>
    Grid.SelectedStyle.BackgroundPictureDrawMode = C1.Win.C1TrueDBGrid.BackgroundPictureDrawModeEnum.Stretch

    I'm using an image (fillet) normally used as web-page-background, it's work fine. 

Page 1 of 2 (22 items) 1 2 Next >
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.