R
Roberto Kohler
I would like to add a cancel command to a DetailsView so that when the
DetailsView is in ReadOnly Mode and a user clicks the Cancel button, the
DetailsView closes.
The DetailsView is linked to a GridView through an SQLDataSource that calls
a stored procedure using as parameters the SelectedDataKey.Values of the
GridView.
The GridView lists a bunch of records using the SQLDataSource "dsALLROWS"
that calls a stored procedure "sp_listAllRows"
The DetailsView shows one record using the SQLDataSource "dsONEROW" which is
linked to GridView through it's SelectControlParameters that point to the
selected record and it calls a stored procedure "sp_getOneRow @Param1,
@param2" with the SelectedDataKey.Values.
I tried closing the DetailsView by setting the GridView.selectedindex to -1,
but that did not work.
I tried setting the DetailsView1.DataSourceID to Nothing, but that did not
work either.
Any ideas?
DetailsView is in ReadOnly Mode and a user clicks the Cancel button, the
DetailsView closes.
The DetailsView is linked to a GridView through an SQLDataSource that calls
a stored procedure using as parameters the SelectedDataKey.Values of the
GridView.
The GridView lists a bunch of records using the SQLDataSource "dsALLROWS"
that calls a stored procedure "sp_listAllRows"
The DetailsView shows one record using the SQLDataSource "dsONEROW" which is
linked to GridView through it's SelectControlParameters that point to the
selected record and it calls a stored procedure "sp_getOneRow @Param1,
@param2" with the SelectedDataKey.Values.
I tried closing the DetailsView by setting the GridView.selectedindex to -1,
but that did not work.
I tried setting the DetailsView1.DataSourceID to Nothing, but that did not
work either.
Any ideas?