'System.Web.UI.WebControls.GridView' does not contain a definition for 'Refresh' and no extension method 'Refresh' accepting a first argument of type 'System.Web.UI.WebControls.GridView' could be found (are you missing a using directive or an assembly reference?)
In the Web Application GridView is not having any property call Refresh.
Refresh is used in Windows Application.
this.dataGridView1.Refresh();
k but it take the old data .how to avoid that
Bind your GridView with new Data when you are editing or deleting the records.
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.