GridView, must not be understanding something fundamental

Discussion in 'ASP .Net' started by =?Utf-8?B?Sm9obks=?=, Oct 2, 2006.

  1. I have a GridView
    MyClass[] List = new MyClass[10] ;

    for (int i = 0; i < 10; i++)
    {
    List = new MyClass();
    List.FirstName = " First " + i;
    List.LastName = " Last " + i;
    }

    GridView1.DataSource = List;
    GridView1.DataBind();

    now the data shows up fine.
    I also have AutoGenerateEditButton = True (in the properties), so I have
    "Edit" shown in column 1....
    But when I click the Edit button, the page just refreshes itself... the row
    is not put into an edit mode.... what am I missing?
     
    =?Utf-8?B?Sm9obks=?=, Oct 2, 2006
    #1
    1. Advertisements

  2. I got the ObjectDataSource to work (which would be my preferred way).... but
    I'm still curious how one would make it work if I didn't use either Sql
    source or an ObjectDataSource...
     
    =?Utf-8?B?Sm9obks=?=, Oct 3, 2006
    #2
    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. luca passani

    must be missing something simple...

    luca passani, Sep 5, 2003, in forum: Java
    Replies:
    1
    Views:
    714
    luca passani
    Sep 5, 2003
  2. Mark M
    Replies:
    16
    Views:
    859
    Chris Uppal
    Mar 5, 2004
  3. SB
    Replies:
    6
    Views:
    580
    Old Wolf
    Apr 23, 2004
  4. Guest
    Replies:
    4
    Views:
    678
    Guest
    Oct 13, 2004
  5. Mike P
    Replies:
    0
    Views:
    670
    Mike P
    Aug 3, 2006
  6. NeoGeoSNK
    Replies:
    25
    Views:
    1,324
    NeoGeoSNK
    Nov 24, 2006
  7. RadiationX

    I'm not understanding something

    RadiationX, Feb 23, 2006, in forum: C Programming
    Replies:
    23
    Views:
    891
    RadiationX
    Feb 26, 2006
  8. Pekka Järvinen
    Replies:
    2
    Views:
    917
    Richard Tobin
    Apr 29, 2008
Loading...