Normally, we would like to clear a gridview for various reason. I want the data to be cleared from grid view everytime user does the search and the grid view will be binded again if the user click a particular button otherwise the last result will be displayed when the new dataset/datatable does not return any rows. This is the simplest way i ever think of
gvPlayerListEvent.DataSourceID = String.Empty gvPlayerListEvent.DataBind()
Leave a Reply