Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
Error occured when adding row in datagrid view
sooraj pr
13y
3.8k
1
Reply
I want to add a new rows in datagridview when cell leave event occurs.It shows error like Operation can not be performed in this event handler...
my code is here
if
(e.ColumnIndex == 2)
{
if
(dgvItm.Rows[e.RowIndex].Cells[e.ColumnIndex].Value !=
null
)
{
dgvItm.Rows.Add();
dgvItm.Rows[dgvItm.Rows.Count].Cells[0].Value = dgvItm.Rows.Count;
}
}
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Auto detect Drives
Problem with Sending Email using Outlook Express 6