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
toanhoi bui
NA
70
207.1k
Using Event Checkbox in Datagridview
May 13 2011 4:03 AM
Hi eveybody, I want to throw event checkbox in Datagridview is checked
Code my Here:
public int chon = 0;
private void dgvNvHop_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
try
{
if (chon == 0)
{
chon = 1;
dgvNvHop.Rows[e.RowIndex].Cells["Chon"].Value = true;
}
else
{
chon = 0;
dgvNvHop.Rows[e.RowIndex].Cells["Chon"].Value = false;
}
}
catch { }
}
But When I click into a checkbox ,it set true.and after if I remove click it,it set false.But I get all checkbox is values equal true .Checkbox is remove click still values true.I don't understand
Reply
Answers (
4
)
Unable to access MDB file using OleDbConnection
Printing in C#