jeudi 28 juillet 2016

C# How to refresh a GridView without data binding or JavaScript?

I've asked this question before here, but it doesn't seem to gain any attention. Maybe I've not written it well.

Simply put: Is there a way to refresh/redisplay a Gridview without having to use a DataBind()?

The databind() reloads the gridview but it also wipes any data that was typed into its textboxes, dropdownlist selections, etc. Of course the way to avoid that is to save the data using the submit call and reload the new data. But that's a databind() solution.

There must be a way to refresh a GridView by simply reloading what values it has "held" in it. Maybe in ViewState[] ?? (assuming ViewState keeps all the data automatically)

My gridview sample etc are in the link above.

Thanks

Aucun commentaire:

Enregistrer un commentaire