Wrox Programmer Forums
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 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 April 3rd, 2006, 06:50 AM
Registered User
Join Date: Apr 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default change row color

how can i change row color of datagrid in vb.net

please help me

Old April 4th, 2006, 02:53 PM
Authorized User
Join Date: Jun 2005
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts

same question is also from my side, but wid a little difference
i wanna highlight/color a specific [row, column] of datagrid, instead of whole row. Plz tell w.r.t C#

Old April 12th, 2006, 03:20 PM
Authorized User
Join Date: Dec 2004
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts

I dont know how to change color a specific cell but You can change color of alternate rows by changing back color of alternate row color property in property window. and can change specific column's color with the help of "property builder > format > columns ".


Old April 13th, 2006, 01:42 PM
Friend of Wrox
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts

use the itemdatabound event. You can then grab the row and change the color, the same for the cell once you grab the row.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Date <= change row color mateenmohd Classic ASP Basics 0 August 1st, 2007 06:39 AM
How to change the color of selected row of an HTML bhavna HTML Code Clinic 4 February 11th, 2007 09:22 PM
how can i change row color in datagrid? berzegerol VS.NET 2002/2003 3 October 31st, 2006 09:08 AM
datagrid row color change berzegerol Visual Studio 2005 0 October 18th, 2006 06:33 AM
change the color of a row in a Datagrid bimal General .NET 1 October 6th, 2004 03:12 PM

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