How to use sets in code, such as adding to TDBGrid.Options,
at run time?



How to use sets in code, such as adding to TDBGrid.Options, at run time?..

Answer / Furakan Ali

You can add items to a set (like TDBGrid.Options) at runtime by using the Add method. Here is a simple example:

```
MyDBGrid.Options := [toNoAutoTest]; // Set initial options
// At runtime, you can add more options like this:
MyDBGrid.Options.Add(toShowCheckBoxes);
```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Delphi Interview Questions

How to place a bitmap in a Metafile?

1 Answers  


What is the function of inheritance in delphi?

1 Answers  


How to draw using LoEnglish Mapping Modes?

1 Answers  


How to use the InterBase Express (IBX) SQL monitor?

1 Answers  


How to Add hint windows to applications?

1 Answers  


What are the Benefits of the ConstraintBroker?

1 Answers  


How to Make text background transparent?

1 Answers  


What is the function of dynamic arrays?

1 Answers  


How to move Client Objects to a different AS/400?

1 Answers  


How to Use Variables & For Loops in Delphi?

1 Answers   Bosch,


Where is proxies.dcu?

1 Answers  


How to Check drive ready status?

1 Answers  


Categories