Posted 9 April 2019, 10:41 pm EST
Hello,
1 : For the InsertMode property we need to take the cell editor as TextBox and handle the keypress event to use overstrike mode. Code snippet is given below :
Private Sub C1TrueDBGrid1_ColEdit(sender As Object, e As C1.Win.C1TrueDBGrid.ColEventArgs) Handles C1TrueDBGrid1.ColEdit
Dim Box As TextBox = TryCast(C1TrueDBGrid1.Editor, TextBox)
If Box IsNot Nothing Then
RemoveHandler Box.KeyPress, AddressOf Box_KeyPress
AddHandler Box.KeyPress, AddressOf Box_KeyPress
End If
End Sub
Private Sub Box_KeyPress(sender As Object, e As KeyPressEventArgs)
Dim Box As TextBox = (TryCast(sender, TextBox))
If Box.SelectionStart < Box.TextLength AndAlso Not Char.IsControl(e.KeyChar) Then
Dim SaveSelectionStart As Integer = Box.SelectionStart
Dim sb As StringBuilder = New StringBuilder(Box.Text)
sb(Box.SelectionStart) = e.KeyChar
Box.Text = sb.ToString()
Box.SelectionStart = SaveSelectionStart + 1
e.Handled = True
End If
End Sub
2 : For the ConvertEmptyCell property visit the sample in the location :
C:\Users\UserName\Documents\ComponentOne Samples\WinForms\C1TrueDBGrid\VB
3: Sorry but there is no such MarqueeUnique property available in TrueDbGrid for winforms.
I am attaching a sample regarding the first point please go through it for better understanding.
Thanks.
TrueDbProperties.zip