GridView And SqlDataSouce

Discussion in 'ASP .Net Datagrid Control' started by rony, Jan 3, 2007.

  1. rony

    rony Guest

    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
    rony, Jan 3, 2007
    #1
    1. Advertising

  2. > 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.

    --
    Regards,
    Alvin Bruney
    ------------------------------------------------------
    Shameless author plug
    Excel Services for .NET is coming...
    OWC Black book on Amazon and
    www.lulu.com/owc

    "rony" <> wrote in message
    news:...
    > 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
    >
    Alvin Bruney [MVP], Jan 8, 2007
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?bWdvbnphbGVzMw==?=

    GridView Hierarchical View - Gridview in Gridview

    =?Utf-8?B?bWdvbnphbGVzMw==?=, May 9, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    17,944
    =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=
    May 9, 2006
  2. phil
    Replies:
    2
    Views:
    1,098
    Shahzad Godil
    Nov 14, 2006
  3. rony_16

    GridView And SqlDataSouce

    rony_16, Jan 3, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    278
    rony_16
    Jan 3, 2007
  4. Replies:
    0
    Views:
    394
  5. Brian
    Replies:
    0
    Views:
    123
    Brian
    Aug 10, 2006
Loading...

Share This Page