GridView Selected Index!

Discussion in 'ASP .Net' started by Child X, Oct 28, 2006.

  1. Child X

    Child X Guest

    Hi all,

    I have a web form with two GridViews on it.

    GridView 'A' populates GridView 'B' based on it 'SelectedRowValue'.

    What i am after, is ...if someone delete a row from grid 'A' and it is
    currently the 'SelectedRow'...

    I want to decrement GridViews selected index by 1 so it falls to the
    previous row.

    What is the best way to do this?

    What would be the best way to determine if the GridView 'A' has any rows of
    data in it...and not just the Empty Data Template...before i
    try to modify the SelectedIndex property?

    ASP 2.0

    Cheers,
    Adam
     
    Child X, Oct 28, 2006
    #1
    1. Advertisements

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. Iain
    Replies:
    3
    Views:
    1,155
  2. WebBuilder451

    set selected index of gridview on load

    WebBuilder451, May 2, 2008, in forum: ASP .Net
    Replies:
    1
    Views:
    1,307
    Teemu Keiski
    May 3, 2008
  3. Sobin Thomas
    Replies:
    1
    Views:
    1,248
    Munna
    Aug 12, 2008
  4. Nathan Sokalski
    Replies:
    0
    Views:
    811
    Nathan Sokalski
    Oct 5, 2008
  5. John
    Replies:
    5
    Views:
    1,232
    dorayme
    Mar 1, 2010
  6. mldardy
    Replies:
    0
    Views:
    1,145
    mldardy
    Sep 28, 2010
  7. Nathan Sokalski

    Selected ListItem in DropDownList does not appear selected

    Nathan Sokalski, Oct 5, 2008, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    432
    Nathan Sokalski
    Oct 5, 2008
  8. Tomasz Chmielewski

    sorting index-15, index-9, index-110 "the human way"?

    Tomasz Chmielewski, Mar 4, 2008, in forum: Perl Misc
    Replies:
    4
    Views:
    589
    Tomasz Chmielewski
    Mar 4, 2008
Loading...