Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shifting of controls inside grid column when column is clicked

Status
Not open for further replies.

Sng1

Programmer
Aug 3, 2021
65
IN
I have 2 controls inside grid column - one is container and other is textbox which is controlled by dynamiccurrentcontrol property and sparse property. Grids's allowcellselection is false. It works fine but when that column is clicked with mouse, there is slight shifting of letters of textbox when downarrow or uparrow is used to scroll in the grid. I can i prevent that. Margin is set to 0. In the image attached ,active row text is shifted by 1 pixel to the right in column2
 
 https://files.engineering.com/getfile.aspx?folder=d71a4bbf-fee9-48dc-90ed-ad9785c115f5&file=photo-1.png
I think this is something I've been running into, too. I suspect the problem is that the built-in textbox that appears when the Sparse is .T. and the cell doesn't have focus has a different margin than the textbox you're using. There's no way to specify your own textbox class for the built-in sparse textbox.

Tamar
 
Ok, then will have to go ahead with the same
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top