A
Andrew Jones
If there is a better place to post this please let me know.
I have a GridView whose Data is bound to an ObjectDataSource ( BLL - DAL ).
When I click Edit on a Row in that GridView I want one of my edit template
fields to fill a DropDownList based on a value from another column on that
same row.
That DropDownList is bound to a different ObjectDataSource that is within
that EditTemplate.
I am using the Selecting Event on that ObjectDataSource to set up the
parameter so the datasource populated according, but I don't know where to
get that value from the GridView Row that is being edited. There is an
EditIndex on the GridView that represents the row I am editing, but the
GridView at the time of this event is not populated and this particular
Gridview has sorting enabled so I can't rely on the natural order of the
datasource.
Any Ideas?
-AJ
I have a GridView whose Data is bound to an ObjectDataSource ( BLL - DAL ).
When I click Edit on a Row in that GridView I want one of my edit template
fields to fill a DropDownList based on a value from another column on that
same row.
That DropDownList is bound to a different ObjectDataSource that is within
that EditTemplate.
I am using the Selecting Event on that ObjectDataSource to set up the
parameter so the datasource populated according, but I don't know where to
get that value from the GridView Row that is being edited. There is an
EditIndex on the GridView that represents the row I am editing, but the
GridView at the time of this event is not populated and this particular
Gridview has sorting enabled so I can't rely on the natural order of the
datasource.
Any Ideas?
-AJ