TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
David Smith
NA
2k
0
C# Painting cells, rows , columns at runtime
Feb 22 2010 10:32 AM
Hi i want to be able to Paint cells, rows , and columns at runtime.
right now I have a sample code but its only painting to row 1 row. I want to be able to paint to all.
this is what i have so far. Is there away I can just pick the color from the colordialog box at run time and display to the grid instead
of me assigning the color by code.
if (checkBox1.Checked)
{
dataGridView2.Rows[1].DefaultCellStyle.BackColor = Color.White;
}
else
{
dataGridView2.Rows[1].DefaultCellStyle.BackColor = Color.Red;
}
Reply
Answers (
13
)
Creating dynamic controls, other than in Page_load event in asp.net
Datagridview painting