GridView And SqlDataSouce

R

rony

Hi,
I am trying to build GridView that will use the option of sorting and
paging by allowing CallBack property in the GridView.
The problem that i found that if i want to add columns in code
behind, the callback option is disabled.
the callback does work if i add the columns in the GridView wizard.
does any one know how to add the columns in code behind and enable the
callback property?

and one more question,
why can't i create the sqldatasource in code behind and not dragging it
from the tool bar?

Thanks, Rony
 
A

Alvin Bruney [MVP]

and one more question,
why can't i create the sqldatasource in code behind and not dragging it
from the tool bar?
Sure you can, it's an ordinary control that you can program independently of
the designer.

For question number 1, I have no idea how to do this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top