Check out the DataGridTableStyle class. This class represents the table drawn by the System.Windows.Forms.DataGrid control at run time.
Here's the URL in MSDN: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/h tml/frlrfsystemwindowsformsdatagridtablestyleclassselectionbackcolortopi c.asp HTH, John Brancaleon -----Original Message----- From: Young [mailto:[EMAIL PROTECTED] Sent: Friday, October 15, 2004 9:54 AM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] datagrid row color In a message dated 10-14-2004 10:28:16 PM Eastern Daylight Time, [EMAIL PROTECTED] writes: Hi, I have used the CssClass property and the ItemCreated event to change the background colour of the whole row of the datagrid. It works quite well. Here is an example: this works for web control datagrid only, any counterpart in the window control datagrid? thanks =================================== This list is hosted by DevelopMentor(r) http://www.develop.com Some .NET courses you may be interested in: Essential .NET: building applications and components with CSharp August 30 - September 3, in Los Angeles http://www.develop.com/courses/edotnet View archives and manage your subscription(s) at http://discuss.develop.com __ ********************************************** This e-mail and any attachments may be confidential or legally privileged. If you received this message in error or are not the intended recipient, you should destroy the e-mail message and any attachments or copies, and you are prohibited from retaining, distributing disclosing or using any information contained herein. Please inform us of the erroneous delivery by return e-mail. Thank you for your cooperation. ********************************************** FE01 =================================== This list is hosted by DevelopMentor� http://www.develop.com Some .NET courses you may be interested in: Essential .NET: building applications and components with CSharp August 30 - September 3, in Los Angeles http://www.develop.com/courses/edotnet View archives and manage your subscription(s) at http://discuss.develop.com
