GridView Binding!!

Discussion in 'ASP .Net Datagrid Control' started by Vai2000, Jan 26, 2007.

  1. Vai2000

    Vai2000 Guest

    Hi All, I have a DataList and a grid view control on the same page. The way
    GridView binds is if an item is selected on Datalist the GridView Binds to
    that selected value.

    I want the Datalist to automatically fire off an event with default selected
    value so that the gridview can bind when the page loads. How can I set "
    default selected value "in datalist?

    This is my current Code!!!!
    protected void Item_Command(Object sender, DataListCommandEventArgs e){

    DataList1.SelectedIndex = e.Item.ItemIndex;

    }



    TIA
    Vai2000, Jan 26, 2007
    #1
    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. Jordan
    Replies:
    2
    Views:
    2,518
    Jordan
    Feb 10, 2004
  2. Amit
    Replies:
    6
    Views:
    13,756
    Assimalyst
    Oct 24, 2006
  3. Replies:
    2
    Views:
    843
    Kevin Grover
    Oct 20, 2006
  4. JcFx
    Replies:
    0
    Views:
    267
  5. Vivek Nallur

    value binding and function binding

    Vivek Nallur, Sep 25, 2003, in forum: Ruby
    Replies:
    0
    Views:
    130
    Vivek Nallur
    Sep 25, 2003
Loading...

Share This Page