Private MyName as String
Private Myticker as String
Public Sub New (newName As String, Newticker as String)
Me.myname = NewName
Me.myticker = Newticker
End Sub
Public ReadOnly Property Name () as String
Get
return myname
End Get
End Property
Public ReadOnly Property Ticker () as String
Get
Return Myticker
End Get
End Property
End Class
Sub datagrid_itemcreated (Sender as Object, e as DataGridItemEventArgs)
Select Case E.item.itemtype
Case ListItemType.Item
Dim Mydeletebutton as Button
Mydeletebutton = E.item.findcontrol ("Btndelete")
MYDELETEBUTTON.ATTRIBUTES.ADD ("onclick", "return Confirm" (' Are for your sure you want to delete this company? ')
Case ListItemType.AlternatingItem
Dim Mydeletebutton as Button
Mydeletebutton = E.item.findcontrol ("Btndelete")
MYDELETEBUTTON.ATTRIBUTES.ADD ("onclick", "return Confirm" (' Are for your sure you want to delete this company? ')
End Select
End Sub
Sub Datagrid_deleterow (sender as Object, E as EventArgs)
Label1.Text = "HEY, can ' t delete that company!"
End Sub
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.