Reputation: 8285
I have an update panel and a gridview inside of the panel. The gridview has an onRowCommand attached. On the row commands the page is doing a full posting back. It is a fairly large gridview in terms of columns. Has anyone had any problems or issues around gridviews that are similar to this?
Thanks very much
Upvotes: 0
Views: 343
Reputation: 2689
Yes, putting yourgridview.databind() in the following if statement will help you stop repopulation of your what ever databound controls. Use this always if want you want the controls populated at the first load of the page only. Or please elaborate your question more
if Not IsPostBack then
' bind your controls here
End if
Upvotes: 1