Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 29th, 2009, 09:21 AM
Friend of Wrox
 
Join Date: Jan 2007
Posts: 115
Thanks: 2
Thanked 0 Times in 0 Posts
Question DatagrifView AlternatingRowsDefaultCellStyle overides the DefaultCellStyle.BackColor

Hi,

I want to change a columns background color: dgvtxbQty.DefaultCellStyle.BackColor = System.Drawing.Color.White;

But on the Grid I have a AlternatingRowsDefaultCellStyle which set every other row format.

The problem is it overides the dgvtxbQty.DefaultCellStyle.BackColor & the backcolor only works for the rows not being set by the AlternatingRowsDefaultCellStyle

Is there a way around this?

Regards





Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing Buttons backcolor? sanderson Visual Basic 2008 Essentials 2 June 10th, 2009 05:52 PM
Tab Control Backcolor SerranoG Access 3 February 21st, 2008 04:34 PM
Datagrid: cell backcolor kesar ASP.NET 2.0 Professional 1 January 12th, 2007 01:54 PM
DataGridView: Cell BackColor kesar VB How-To 0 January 8th, 2007 08:19 AM
ComboBox BackColor change LoorD C# 4 October 6th, 2005 12:44 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.