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
tekk
NA
101
0
chnging the font style of a cell in a datagridview
Aug 25 2009 3:28 AM
Hi for a value in a cell of a dgv I want to change the font style to bold when I click on a particular cell. For that I have written the following code under the dgv's cell click event but it is giving error
private void dgvItemsDetails_CellClick(object sender, DataGridViewCellEventArgs e)
{
DataGridViewRow row = dgvItemsDetails.CurrentRow;
int index = row.Index;
dgvItemsDetails.Rows[index].DefaultCellStyle.Font = Font.Bold; // error here
}
Thanks
Reply
Answers (
2
)
Displaying datagrid row in Bold font
cursor invisible when I set the DroppedDown = true for a combobox.