I could use a little advice from anyone that has worked with making a custom listbox. I’m needing variable row heights, so I’m trying to role out my own. Everything is working very well so far, with the exception of the grid lines and column headers don’t line up correctly. I’m not sure if there is something else I need to handle in my drawing code or what’s up.
You can see in the picture, the grid lines are shifted to the right of the header divider. My drawing starts at 0, 0 in most cases. Does anyone have any ideas that might help me solve this?
The vertical indent of the first column makes me think you’re drawing those lines in CellTextPaint, because the graphics you get in that event is shifted like that. You’ll need to use CellBackgroundPaint for the whole space. I don’t see what’s misaligned about the headers, looks nice. are you going to share
If you are open to a paid solution I have a custom listbox subclass that I think does what you want.
My old website is no more as my ISP no longer provides webspace as of the end of September, but I am in the process of building a new site elsewhere. In the mean time you can download a demo with docs that ONLY runs in the IDE here:
You can code with it that way but for it to run you need to buy a license which gets you teh unencrypted source code.
It lets you merge cell across rows or columns as well as has a lot of other nice features.
For to run the demo in the IDE do not remove teh project from teh folder it comes in… The Demo needs pictures that are there and it needs to know where to find them
You nailed it Will… that makes sense. I guess sitting up all night working left me a little fuzzy headed. I could not figure out what was going on, but it was so simple.