jfecardona
Member
Hi, I was trying to override value property in datagridviewcell but it says it is not overridable. Is there any other way to do it? The situation is, i want to check the value first if it is valid before throwing it back.. I tried to do it in textbox.Text like this:
Public Overrides Property Text() As String
Get
Return MyBase.Text
End Get
Set(ByVal value As String)
if isnumeric(value) Then
MyBase.Text = value
Else
MyBase.Text = 0
End If
End Set
End Property
Now I want to do it using datagridviewcell's property which is "value"
ex: datagrid1.item(0,0).value = ""
Public Overrides Property Text() As String
Get
Return MyBase.Text
End Get
Set(ByVal value As String)
if isnumeric(value) Then
MyBase.Text = value
Else
MyBase.Text = 0
End If
End Set
End Property
Now I want to do it using datagridviewcell's property which is "value"
ex: datagrid1.item(0,0).value = ""