Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is the easiest way to replace a standard DBGrid with a DbAltGrid in my project?

0
Posted

What is the easiest way to replace a standard DBGrid with a DbAltGrid in my project?

0

Create a backup copy of your project. Place a TdagBackup component on the same form the original TDBGrid resides on and set its Grid property to that grid. Right-click the TdagBackup and select Convert from the popup menu to turn the TDBGrid into a TDbAltGrid component. After you have done that, you can delete the TdagBackup component from the form, if it is no more needed. Switch to the Code Editor. Select Search | Replace in the main menu or press Ctrl+R to display the Replace Text dialog box. Replace all the occurrences of “TDBGrid” in the unit with “TDbAltGrid”. When I scroll an ADO dataset the alternate row colors are incorrect.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123