Hi All,
I've been playing with asp.net and in particular gridviews. I am however wanting to do something which I can not seem to get to work.
I want to define the datasource of the gridview as an objectdatasource (I'm using a vs.net data set and table adapters), now, I can do this fine through the gridviews little wizzard, however this places all the code in the .aspx file. What I want is for all the declaration of the objectdatasource stuff to be done in the pages .aspx.vb file, or even better in a seperate class.
Is there anyway to do this?
Regards,
James
I've been playing with asp.net and in particular gridviews. I am however wanting to do something which I can not seem to get to work.
I want to define the datasource of the gridview as an objectdatasource (I'm using a vs.net data set and table adapters), now, I can do this fine through the gridviews little wizzard, however this places all the code in the .aspx file. What I want is for all the declaration of the objectdatasource stuff to be done in the pages .aspx.vb file, or even better in a seperate class.
Is there anyway to do this?
Regards,
James
