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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you edit TCustomGrid contents?

Status
Not open for further replies.

Glenn9999

Programmer
Jun 19, 2004
2,311
US
I'm trying to find examples on how to do editing/updating of a TCustomGrid derived component and utterly failing. I'm not even finding anything for TDrawGrid or TStringGrid either. Chiefly I'm needing to find a way to control where the entry part is (where is it, how do I move it programmatically?), but also need to know how to control updating the component (I figured out DrawCell, but I don't see how to trigger redrawing cells when things change).

I'm also needing to highlight/select certain portions of the grid based on what's done with the arrows and mouse, along change some of the appearance attributes (the grid lines, the dotted box, etc).

Any suggestions on this one?

 
I figured out everything but this:

Me said:
I'm also needing to highlight/select certain portions of the grid based on what's done with the arrows and mouse, along change some of the appearance attributes (the grid lines, the dotted box, etc).

 
Only thing left I need to figure out is that I need to move the grid from the upper left to center of the control area. Any thoughts would be appreciated.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top