I need to refresh data in GridView after I call static method (Asp.Net, C#).
Is it possible to accomplish it?
I need to refresh data in GridView after I call static method (Asp.Net, C#).
Is it possible to accomplish it?
well, you can rebind the dataset/datatable you got to the gridview like this,
myGridViewId.DataSource = myDataTable;
myGridViewId.DataBind();
EDIT: After seeing the comment:You mean with out submitting the form manually ,you can trigger it with the following javascript code..
<script type="text/javascript">
setTimeout(function(){window.location.reload(true);},timeoutPeriod);
//timeoutPeriod in milli seconds..
</script>