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
ta mu
NA
201
81.8k
delete datagridview records
Sep 5 2013 5:08 AM
i want to delete record which is selected in datagridview from database but i got error
SqlCommand cmd = new SqlCommand();
cmd.CommandText = "DELETE FROM addcustomer WHERE ccount_No=" + dataGridView1.SelectedRows[0].Cells[0].Value.ToString() + "";
my.Open();
cmd.Connection = my;
cmd.ExecuteNonQuery();
error is
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
plz help me
Reply
Answers (
2
)
Is it possible to use openFileDialog to get the folder path?
Showing connection string in textfield