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.
Rajanikant HawaldarPosted Apr 30, 2020, 9:37 AM
Jignesh KumarPosted Apr 30, 2020, 8:07 AM
Khurram NaqshbandiPosted Apr 30, 2020, 7:23 AM
public static bool askoptions_add_edit(string id, string code, string title, string optionname)
Rajanikant HawaldarPosted Apr 30, 2020, 7:16 AM
Rajanikant HawaldarPosted Apr 30, 2020, 7:09 AM