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

  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. 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. Praveen
    Replies:
    3
    Views:
    562
    Praveen
    Apr 24, 2005
  2. Gary

    FUNDAMENTAL QUESTION 1:

    Gary, Nov 29, 2003, in forum: Java
    Replies:
    3
    Views:
    478
    pete kirkham
    Nov 29, 2003
  3. Gary

    FUNDAMENTAL QUESTION 2:

    Gary, Nov 29, 2003, in forum: Java
    Replies:
    3
    Views:
    416
    Bjorn Abelli
    Nov 29, 2003
  4. NeoGeoSNK
    Replies:
    25
    Views:
    923
    NeoGeoSNK
    Nov 24, 2006
  5. RadiationX

    I'm not understanding something

    RadiationX, Feb 23, 2006, in forum: C Programming
    Replies:
    23
    Views:
    734
    RadiationX
    Feb 26, 2006
Loading...

Share This Page