If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

Need both form level and Code Behind Gridview VB.NET

Hey, guys question for you. I am getting an error, both datasource and datasourceID defined, please remove one of them. what I am trying to do is to set default values for a gridview from the pageload event and also allow the form level usage of datasourceID to set data inside the gridview. I am trying to set the data inside the pageload event, how do I do these without triggering this error? I have tried to remove the DatasourceID reference but then I cannot set it back without causing another error or else not getting it back to form level. Any ideas?

just don't set anything- if you are going to set anything set it's visibility to false... without the error messages or a clear explanation of what you are attempting will not be able to help. (what is it you're trying to do- I do not understand. What are the error messages?)