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
Khurram Naqshbandi
NA
58
4.8k
How can I only update particular row in datagridview?
Apr 30 2020 6:48 AM
DataTable dt;
void fillQueryOption()
{
dt = Query.getData("Select * from askoptions order by id");
dgvAskOption.AutoGenerateColumns = false;
dgvAskOption.DataSource = dt;
clnOptID.DataPropertyName = "ID";
clnCode.DataPropertyName = "Code";
clnTitle.DataPropertyName = "title";
clnOptionName.DataPropertyName = "optionname";
}
private void btnOptSave_Click(object sender, EventArgs e)
{
askoptions_add_edit(txtOptID.Text, txtCode.Text, txtTitle.Text, cmbOptionName.Text);
MessageBox.Show("Record Save Successfully...!!!");
fillQueryOption();
}
when I save data fillQueryOption function update whole datagridview in c# it takes time and load on program.How can I only update particular row in datagridview.
Reply
Answers (
5
)
How to translate English to Urdu using c#?
Insert rows into database from gridview