Home Forums WinForms controls Xceed Grid for WinForms Vista Style Grid

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #14835 |

    Is is possible we can get a vista style for this grid or at least point me to some documentation to where I can create the style myself? I saw in the documentation how you can apply a stylesheet to a grid but nowhere did it go over how to create your own stylesheet….

    Thanks,
    – jv

    Imported from legacy forums. Posted by jvelite (had 4049 views)

    Odi [Xceed]
    Spectator
    Post count: 426

    Hi,

    We are working on Vista styles for the next upcoming release. You can also do it yourself, but in this case we’re probably going to save you the trouble. Can you post a description of what you really need? (a screenshot will be fine too). A “Vista style” can be interpreted a little differently depending on who you ask…

    Odi

    Imported from legacy forums. Posted by Odi [Xceed] (had 271 views)

    User (Old forums)
    Member
    Post count: 23064

    I would be happy to post a screenshot of the exact style I’m trying to incorporate…. how can i do that though? =)

    Imported from legacy forums. Posted by jvelite (had 502 views)

    User (Old forums)
    Member
    Post count: 23064

    I found a code sample to add a stylesheet programmatically and it is really nice. However, the basic background image for the header row does not work with images!….

    Here is what I’m using:

    Public Class XceedVistaGridStyleSheet
    Inherits StyleSheet

    Public Sub New()
    Dim ImagePath As String = Application.StartupPath
    ImagePath = ImagePath.Replace(“\bin\Debug”, “”)
    ImagePath = ImagePath + “\XceedStyleSheetImages\”

    Me.ColumnManagerRow.BackgroundImage = Image.FromFile(ImagePath + “ColumnHeaderBackground.jpg”)
    Me.ColumnManagerRow.BackgroundImageAlignment = ContentAlignment.TopLeft
    Me.ColumnManagerRow.BackgroundImageStyle = ImageStyle.Stretch

    End Sub
    End Class

    If I add a data row and do the same properties the image shows up fine for every row… but nothing works w/the columnmanagerrow.backgroundimage properties…

    Imported from legacy forums. Posted by jvelite (had 436 views)

    Odi [Xceed]
    Spectator
    Post count: 426

    These forums don’t let you post screenshots, the pictures have to be hosted somewhere on the internet and then link to them. To save you the trouble, you can email me any screenshots directly:

    Send them to: KosmatosO@xceedsoft.com

    Imported from legacy forums. Posted by Odi [Xceed] (had 467 views)

    User (Old forums)
    Member
    Post count: 23064

    It most likely that the UIStyle property of the GridControl is not set to WindowsClassic. Thus the WindowsXP theming is painted over your image.

    Imported from legacy forums. Posted by André (had 4880 views)

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.