I have to use a TNextGrid component in my application (version 5.9.20). The grid is quite narrow (36 pixels width, only 1 col) with no scrollsbars (see picture attached).
Every cell can be selected, everything is ok. But once I use the SelectAll procedure, I'm not able to select individually the last row anymore. The others rows can be selected, but clicking the last row doesn't even fire the onselectCell event. If the grid is larger (like 85 pixels), no problem at all!
I've investigated the problem and it seems that the component thinks I click on the horizontal scrollbar although it isn't drawn! Like an invisible layer.
I was able to correct the problem by adding UpdateHorzScrollBar in TNxCustomGridControl.EndUpdate.
procedure TNxCustomGridControl.EndUpdate; if FUpdateCount > 0 then Dec(FUpdateCount); if (FUpdateCount = 0) and CanUpdate then begin Invalidate; UpdateVertScrollBar; UpdateHorzScrollBar; end; end;
Cheers,
PZI