Board index » delphi » dynamically setting a picklist within a dbgrid

dynamically setting a picklist within a dbgrid

I would like to know a way to set the values in a picklist within a
dbgridcolumns object. preferably with a query that gets the values
before the picklist is accessed.

thank you

 

Re:dynamically setting a picklist within a dbgrid


dbgrid1.columns[n].picklist:= getmypicklist;
where n is column number (assuming that
columnresize is set to false)

Quote
randmo wrote in message <74n3qg$c...@forums.borland.com>...
>I would like to know a way to set the values in a picklist within a
>dbgridcolumns object. preferably with a query that gets the values
>before the picklist is accessed.

>thank you

Re:dynamically setting a picklist within a dbgrid


If what you want is to populate the picklist, one good ocasion is in the
form Create or Show event handler.

elio

Other Threads