wopag
  • wopag
  • Member Topic Starter
2025-10-08T08:30:51Z

Hi,

I would like to know if there is any major work from upgrading to 7.5 from 4.7, we have used 10Tec for many years now and our last upgrade to 4.7 made us do alot of changes.

We will be doing our internal testing of course but would like to know if basic functionality will break? (add headers, add rows , sorting)

wopag
  • wopag
  • Member Topic Starter
2025-10-08T09:11:55Z
Seems HeaderRightClick has changed and I cant seem to find any reference to how to use it in the Demo version


4.7
Private Sub iGrid1_HeaderRightClick(ByVal lCol As Long, ByVal Shift As Integer, ByVal x As Long, ByVal y As Long, bDoDefault As Boolean)

vs NEW

Private Sub iGrid1_HeaderRightClick(ByVal lColIfAny As Long, ByVal Shift As Integer, ByVal x As Long, ByVal y As Long)


So to turn off the default "group / sort" popup that appears ?

Igrid1.AllowGrouping = False
Igrid1.AllowSorting = False

'==============================================================================================================================


4.7
Private Sub igrid1_DblClick(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal y As Single, ByVal lRow As Long, ByVal lCol As Long, eAction As iGrid470_10Tec.EDblClickAction)

NEW
Private Sub igrid1_DblClick(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal y As Single, ByVal lRowIfAny As Long, ByVal In 4.7 lrow and lcol As Long, eAction As iGrid750_32x64.EDblClickAction)

Update of eAction

In 4.7 lrow and lcol would return row and col, but in 7 seems to be really high long numbers and dont change even if you double click a new row or col ?

Can we rely on igrid1.CurRow and igrid1.CurCol to be correct instead when Dblclick is fired ?
Igor/10Tec
2025-10-08T14:22:49Z
Good to know you stay with us and our product for so long time.

If you want to upgrade from a previous version, use the What's New documents that describe all changes in every release of iGrid. You can find them all on this page:

https://10tec.com/activex-grid/whats-new.aspx 

The bDoDefault parameter was removed from the HeaderRightClick event in the v6.0. Now this functionality is implemented with the bCancel parameter of the ContextMenuPopup event. More info can be found in the What's New for the v6.0:

https://10tec.com/FS/Doc...Whats-New-in-Release.pdf 

As for the problem with the values of the lRow/lCol parameters of the DblClick event, can you email us a sample demonstrating this issue? Does it occur in the Classic Edition or Modern Edition of iGrid? Tell us also your environment — OS edition and version, your development environment including bitness (32- or 64-bit) and the like.
wopag
  • wopag
  • Member Topic Starter
2025-10-09T07:31:07Z

Email sent.

Mapped most of what I use just the KeyAscii > CharCode to map left. Ive always used my own popup menu so im going to use " Igrid1.copypasteEnabled = false,Igrid1.AllowGrouping = False,Igrid1.AllowSorting = False " to replace the bDoDefault function.


replace
_KeyPress(KeyAscii As Integer)
with
_KeyPress(CharCode As Long)

replace
TextEditKeyPress(ByVal lRow As Long, ByVal lCol As Long, KeyAscii As Integer)
NEW
TextEditKeyPress(ByVal lRow As Long, ByVal lCol As Long, CharCode As Long)


Replace
RequestEdit(ByVal lRow As Long, ByVal lCol As Long, ByVal iKeyAscii As Integer, bCancel As Boolean, sText As String, lMaxLength As Long, eTextEditOpt As iGrid470_10Tec.ETextEditFlags)
NEW
RequestEdit(ByVal lRow As Long, ByVal lCol As Long, ByVal lCharCode As Long, bCancel As Boolean, sText As String, lMaxLength As Long, eTextEditOpt As iGrid750_10Tec.ETextEditFlags)

Replace
BeforeCommitEdit(ByVal lRow As Long, ByVal lCol As Long, eResult As iGrid750_10Tec.EEditResults, ByVal sNewText As String, vNewValue As Variant, ByVal lConvErr As Long, ByVal bCanProceedEditing As Boolean)
NEW
BeforeCommitEdit(ByVal lRow As Long, ByVal lCol As Long, eResult As iGrid750_10Tec.EEditResults, ByVal sNewText As String, vNewValue As Variant, ByVal lConvErr As Long, ByVal bCanProceedEditing As Boolean, ByVal lComboListIndex As Long)

Replace
AfterCommitEdit(ByVal lRow As Long, ByVal lCol As Long)
NEW
AfterCommitEdit(ByVal lRow As Long, ByVal lCol As Long, ByVal vOldValue As Variant)


Replace
HeaderRightClick(ByVal lCol As Long, ByVal Shift As Integer, ByVal x As Long, ByVal y As Long, bDoDefault As Boolean)
With
HeaderRightClick(ByVal lColIfAny As Long, ByVal Shift As Integer, ByVal x As Long, ByVal y As Long)


Replace
DblClick(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal y As Single, ByVal lRow As Long, ByVal lCol As Long, eAction As iGrid470_10Tec.EDblClickAction)
with
DblClick(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal y As Single, ByVal lRowIfAny As Long, ByVal lColIfAny As Long, eAction As iGrid750_32x64.EDblClickAction)