Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
146431 | Aug 3,2019 03:04 AM UTC | Aug 5,2019 11:25 AM UTC | WinForms | 1 |
![]() |
Tags: PivotGridControl |
# Form1.vb
Public Class CustomEditingManager
Inherits PivotEditingManager
Public Sub New(ByVal pg As PivotGridControlBase)
MyBase.New(pg)
End Sub
Protected Overrides Sub ChangeValue(ByVal oldValue As Object, ByVal newValue As Object, ByVal row1 As Integer, ByVal col1 As Integer, ByVal pi As PivotCellInfo)
If Not System.Text.RegularExpressions.Regex.IsMatch(newValue, "^\d+$") Then
newValue = 0
End If
'do the base change
MyBase.ChangeValue(oldValue, newValue, row1, col1, pi)
''mark all the adjusted cell contents
'pi.FormattedText &= "*"
End Sub
End Class |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.