Please, I need some help.
I am trying to use a Gridview (pirces) within a Listview (products) and have it working for read only. In the Listview_OnItemDataBound I load the data manually with the statements:
GridViewProductPrices.DataSource = GetDataSourcePrices();
This works fine, but when I press the edit button, the row does not get to editmode.
The problem I have why the edit command does not work is that this statement does not work: this.Rows[rowIndex].RowState = DataControlRowState.Edit;
Findcontrol does not find it either.
If I use a datasourceID in the ASPX then it works:
datasourceid = "SqldatasourcePrices" however I am unable to provide the product key to this datasoure for the Gridview (price).
How can I get the Gridview inside the Listview in edit mode? OR
How can I get the product key to the SqldatasourcePrices
Since the Gridview is inside the Listview, the findcontrol does not find the Gridview control and so I can not set it to edit.
After that is all working, how can I implement the insert?
Here are the details of the ASPX:
<asp:ListView ID="ListView.. ....
View Complete Post