Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

The control ensures that a column fits the visible client area when I click a cell. How can I avoid that?

0
Posted

The control ensures that a column fits the visible client area when I click a cell. How can I avoid that?

0

The control automatically calls the EnsureVisibleColumn method when the user clicks a cell. The following sample shows how to avoid calling the EnsureVisibleColumn method when user clicks a cell: Private Sub Grid1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) With Grid1 Dim c As Long, hit as Long Dim h As HITEM h = .ItemFromPoint(X / Screen.TwipsPerPixelX, Y / Screen.TwipsPerPixelY, c, hit) If Not (h = 0) Then .

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123