Author: tvsbh | Posted on: 3/9/2010 1:01:34 PM | Views : 453

I have a Gridview that has a button at the left hand side representing the row number.   The Gridview has two textboxes and a dropdown listbox as templates.  I would like to enable or disable the textboxes and the dropdown listbox if the row is not selected.  I also need to enable or disable the templates depending on what the value is of one of the cells.  When the templates are changed, I need to save the changes.
I have been able to get this working in the RowDataBound Sub but not in the RowCommand Sub when the row is selected.
Please provide an example in VB.
My current RowDataBoundSub, which does no work is below:
Protected Sub PropGrid_RowCommand(ByVal sender As Object, _
     ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles PropGrid.RowCommand
'***************************************************************************
'Sub PropGrid_RowCommand
'Th ...

Go to the complete details ...