GridView, must not be understanding something fundamental

G

Guest

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?
 
G

Guest

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

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top