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
siva reddy
NA
1
0
deleting row in mysql from datagridview
Sep 10 2009 2:46 AM
i tried to delete data from datagridview . it is not deleting row in mysql but removes in datagridview.
My code is
private void update_Click(object sender, EventArgs e)
{
DataTable dt = ds.Tables["distributor"];
this.dataGridView1.BindingContext[dt].EndCurrentEdit();
this.da.Update(dt);
}
private void delete_Click(object sender, EventArgs e)
{
if (dataGridView1.SelectedRows.Count == dataGridView1.Rows.Count)
{
dataGridView1.Rows.Clear();
}
foreach (DataGridViewRow row in dataGridView1.SelectedRows)
{
dataGridView1.Rows.Remove(row);
}
}
pls help me.
thank you
Reply
Answers (
1
)
How to retrieve data from database to Gridview when i Doubleclick a particular cell using C#?
Binding FlowLayoutPanel to Stored Procedure