Ciao
1 – If I insert a button (such as deleting records) into a DataReapeterItem (Example attached) how do I capture the item ID?
2 – Is it possible to hide or disable buttons based on some values in other fields?
Grazie
Alessandro
You could listen to the CurrentItemIndexChanged event.
To know the previous item you can save CurrentItemIndex property in a local variable.
Best regards
Frank
Ciao,
When I click on a datarepeaterItem I make one or more buttons visible. How do I hide them when I switch from one datarepeaterItem to another? (i.e. in datarepeaterItems that lose focus?)
Grazie
Alessandro
Ciao,
please find a sample attached that shows how to use the Button Tag to bind to an ID
and how to handle child controls inside ItemUpdate.
Best regards
Frank
As for the first question I tried to make the bind button Tag property:
Button1.DataBindings.Add(“Tags”, dataView, “nominative”)
But using the following Sub gives me an empty message
Private Sub Button1_Click(sender As Object, and As EventArgs) Handles Button1.Click
MsgBox(Button1.Text)
End Sub
Am I wrong?
Grazie
Ciao,
Best regards
Frank
Please login first to submit.