p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 2.0 Professional (http://p2p.wrox.com/forumdisplay.php?f=215)
-   -   Datagrid: cell backcolor (http://p2p.wrox.com/showthread.php?t=52397)

kesar January 8th, 2007 08:16 AM

Datagrid: cell backcolor
 
hi,
i ve populated my datgrid with a datatable
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

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)




Raja_cm January 12th, 2007 01:54 PM

hi

Have u written this code in ItemCreated event?




All times are GMT -4. The time now is 05:45 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.