On Aug 13, 11:42 am, Joey <joey.pow...@topscene.comwrote:
asp.net 2.0
VS2005
C#
In my web app I added a gridview and then manually configured
boundcolumns, for an in-session dataset to act as a datasource. Then I
added an Edit commandfield. When I run the page, in each row in the
gridview I see the data and the Edit and Delete links just fine. But
when I click an edit link, the post posts back and nothing else
happens...I do not get textboxes/checkboxes for the columns in the
grid. Each of these columns has its ReadOnly property set to False, so
what's going on here?
JP
Okay, I am getting frustrated because all the examples seem to show
how to do this with SqlDataSource or ObjectDataSource controls.
I simply have a dataset maintained in session state. When the page
loads, I bind the gridview to it and show the data. When I add to it,
I do an insert on the dataset and then rebind. When I delete, I handle
the grids RowDeleting event, remove the row from the dataset and then
rebind. This is the same way I did it in .net 1.1. It worked then and
it works now in 2.0. But for edits...
When I click the Edit link in any row in the grid, a postback occurs
and then nothing else happens. Nothing, no textboxes, no changeover of
the Edit links to Update and Cancel, etc...
If I handle the grids RowEditing event and then use
this.grdMyGrid.EditIndex = e.NewItemIndex.
The textboxes will appear, but then only after the SECOND time I click
Edit.
Does anyone know what is causing this?