We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

What colurs do you use for the non databound grid?

Thread ID:





15300 Jun 16,2004 12:57 AM UTC Jun 16,2004 06:00 AM UTC WinForms 1
Tags: GridControl
Damien Sawyer
Asked On June 16, 2004 12:57 AM UTC

Hi, I''m trying to format the headers of a data bound grid to match the default ''shading'' that you use for the non databound headings. I''ve got them shading ok, however can''t for the life of me figure out which colors you guys use. I tried to work backwards from one that I want to copy, however keep coming up with ''windowtext'' as the back color... which, on my machine, is black. Not what I''m after. Can you please enlighten me? My code is below... Private Sub grdErrorLogs_PrepareViewStyleInfo(ByVal sender As Object, ByVal e As Syncfusion.Windows.Forms.Grid.GridPrepareViewStyleInfoEventArgs) Handles grdErrorLogs.PrepareViewStyleInfo If e.ColIndex = 0 Then With e.Style .Interior = New Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.Horizontal, SystemColors.ActiveBorder, SystemColors.Window) End With End If If e.RowIndex = 0 Then With e.Style .Font.Bold = True .Interior = New Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.Vertical, SystemColors.ActiveBorder, SystemColors.Window) End With End If End Sub

Administrator [Syncfusion]
Replied On June 16, 2004 06:00 AM UTC

Try these to see if they are what you need. header.Interior = new BrushInfo(GradientStyle.Vertical, Color.FromArgb(203, 199, 184), Color.FromArgb(238, 234, 216)); rowHeader.Interior = new BrushInfo(GradientStyle.Horizontal, Color.FromArgb(203, 199, 184), Color.FromArgb(238, 234, 216));


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon