We help IT Professionals succeed at work.

Does anyone know how to set a Column bound to a DataSet??

Saxitalis
Saxitalis asked
on
195 Views
Last Modified: 2010-04-15
Hi,
I am unable to set the column color to "Blue" below. I am trying to set a column default to blue on the form. I tried using BackColor but that changes the the back color of the entire form. Actually I am after the fore color...

DataTable dt = dataSet1.Tables["Stats"];
                            foreach (DataRow row in dt.Rows)
                            {
                                if (row.IsNull("CV")) row["CV"] = "CV";
                                //changes color of entire form instead of column only
                                BackColor  = Color.Blue;
                            }

Thanks
Comment
Watch Question

Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Top Expert 2007
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
thanks
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.