We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this questionI'm working on converting the codebase of an "open-source" project to something that will actually work. I put the term in quotes because what the original authors did was take a commercial product and 开发者_开发百科say "OK, we've made enough money off this now. Here's the source code. Do whatever you'd like to with it." Unfortunately, the codebase as-is requires over $1000 of proprietary component libraries to compile.
I've carefully worked most of the proprietary stuff out, except for one major exception. It uses the InfoPower TwwDBGrid quite a bit. In one important place, it has a grid that displays a name column and several checkboxes, and both the background color and the text color of the name column can be customized for each individual record.
I've got the code to do this in the Infopower grid, and it would be trivial to reimplement for a DevEx grid, but I just can't seem to find an open-source grid that can handle it. I don't need the full power of the InfoPower grid, but I do need a DB grid that will let you specify column types, such as a checkbox column, and that has an event handler for coloring cells at draw-time.
Does anyone know of a grid that meets these requirements? I'd really prefer not to have to do something ugly, like hacking it with a TdbCtrlGrid, if I can avoid it...
The regular TDBGrid
can be adapted to display a checkbox and can color its cells. It can also handle custom controls to some degree, and is generally a lot more customizable than most people give it credit for. Unless you have requirements not already specified here, I haven't seen anything which rules it out.
The questions is answered, but look at SMDBGrid, it's free and meet your requirements, it will save your time instead of reimplement them.
(source: scalabium.com)
精彩评论