Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

Back Colour for a DataGrid row in ASP.NET with VB.Net

Question posted by: MindofZiggi (Newbie) on July 3rd, 2008 11:34 AM
Hi,

How can I change the BackColor of a row in am ASP.NET dataGrid using a VB Function. My data table in not data bound but I do populate it from a function, it has 4 columns (Title, upload Icon, Comment Icon, Score). Score is a number between 1 and 4, when it is 4 I want the background colour to change.

In truth I am not using VB but APL.NET (Dyalog apl) which I guess not many people have come across, but if someone could show me how to do in in VB.net or even C# I should be able to convert it.

Help Please
QVeen72's Avatar
QVeen72
Expert
1,258 Posts
July 3rd, 2008
05:19 PM
#2

Re: Back Colour for a DataGrid row in ASP.NET with VB.Net
Hi,

Try this :

MyDataGrd.BackColor = Drawing.Color.Aqua

Regards
Veena

Reply
Reply
Not the answer you were looking for? Post your question . . .
189,084 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
Top Visual Basic Forum Contributors