I have an application where user is able to select jobs which will show equipment ID and equipment hours.
I am displaying a GridView that has a CommandField in the 1st column with a ShowSelectButton= True. The user is able to click the select button and a 2nd (detailed) GridView is shown. This works fine.
I have added a Footer to my GridView. I show total equipment hours for the selection (looping through the Data Table). This work fine as well.
Now. I would like to be able to have a ShowSelectButton on the Footer as well, let user be able to click and then call a stored procedure. Is this possible. I have tried to add an attribute to the footer cell but not be able to get it working
Code:
If e.Row.RowType = DataControlRowType.Footer Then
e.Row.Cells(0).Text = "Select"
e.Row.Cells(0).Attributes.Add ---> onclick ?
e.Row.Cells(2).Text = "Selection Total"
e.Row.Cells(3).Text = Session("TotalHours")
EndIf