Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To 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 January 8th, 2007, 08:19 AM
Registered User
Join Date: Dec 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default DataGridView: Cell BackColor

hi members,
i ve populated my datgrid with a datatable, say:
dg1.datasource = datatable1

also, i ve set the back color of few columns of all the rows in datagrid using:
dg1.rows(i).cells(j).style.backcolor = color.aqua

whenever the project runs and datagrid is populated for the first time
it works properly, i.e. it shows the aqua back color for the jth column in all the rows

but in the same build, if the datgrid is populated the second time
it doesnt shows the default back color............not the one i'd written code for (aqua)

Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing a cell in a DataGridView Martin Woodhouse C# 2008 aka C# 3.0 12 October 3rd, 2008 08:42 AM
Merge Cell in Datagridview of visual basic 2005 Nambot VB.NET 2002/2003 Basics 1 November 12th, 2007 09:02 AM
datagridview cell validation kscase Pro Visual Basic 2005 1 July 12th, 2007 07:21 AM
Enforcing uppercase in a cell in a DataGridView cole C# 2005 2 April 24th, 2007 02:33 PM
Datagrid: cell backcolor kesar ASP.NET 2.0 Professional 1 January 12th, 2007 01:54 PM

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