How to refresh a gridview control on button click
Except rebind the gridview method
Hi droiddeve,
Write the below code at end of the button click event.
Response.Redirect(Request.Url.AbsoluteUri);
Hi @dharmendr,
i want it in Windows Form ,
Soory i have not written before
You can use Refresh() method to redraws the existing grid to the screen again.
DataGridView1.Refresh()
if (MessageBox.Show("refresh grid", "My Application", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { dataGridView1.Refresh();
}
Not Working
Not possible you need to rebind.
© COPYRIGHT 2024 ASPSnippets.com ALL RIGHTS RESERVED.