By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,870 Members | 1,212 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,870 IT Pros & Developers. It's quick & easy.

how to display various color for rows in datagrid

P: 26
Hi all ,
how to display various color for rows in datagrid in vb.net 2005,
Not a Alternate colors,
Thanks and regards
selvamariappan.c
Oct 4 '08 #1
Share this Question
Share on Google+
4 Replies


Curtis Rutland
Expert 2.5K+
P: 3,256
Well, first of all, does it have to be a datagrid? GridViews are more flexible.

But you should be able to handle the ItemDataBound event and change the colors there.
Oct 4 '08 #2

P: 26
hi ,
Even it may be a gridview , i cant able to find out the ans ,
Pls find it and tell .

regards,
selvamariappan.c
Oct 5 '08 #3

P: 26
Hi all ,
I have Searched , But I cant Find , I am in need of How to display various color for each rows in gridview using vb.net 2005,
Not a Alternate colors,


Thanks and regards
selvamariappan.c
Oct 8 '08 #4

Curtis Rutland
Expert 2.5K+
P: 3,256
Threads merged. Please don't double post your questions.

MODERATOR

As I said, you should be able to handle that event to catch when each item is bound and change the color of the row accordingly.

I don't work with DataGrids much, so I can't give you sample code, but that is how it would be done with a GridView, and I doubt the method is all that dissimilar.

Try it out, and let us know.
Oct 8 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.