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
sooraj pr
NA
1
5.4k
Error occured when adding row in datagrid view
Mar 7 2011 1:32 AM
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;
}
}
Reply
Answers (
2
)
Auto detect Drives
Problem with Sending Email using Outlook Express 6