Hi
This seems to be a bug in DBGrid.
I am using Delphi6 on Windows XP.
I hace a TComboBox and a TDBGRId.
Based selection made in combobox I display filterd data into TDBGrid.
The idea is to filer result based on item selected in ComboBox
Now try this.
Select a item in combobox so that u get say 50 records. (now u can see
scroll bar)
Now select a item in comboxbox so that u get no records (now u don't
see the scroll bar)
Now select a item in combbox so that u get say 50 recodrs (now u don't
see the scroll bar)
Now select a item in comboxbox so that u get no records (now u don't
see the scroll bar)
Select a item in combobox so that u get say 50 records. (now u can see
scroll bar)
So the sequence is
Lot of records found -> u see scroll bar
No recors found -> u don't see scroll bar
Lof of records found -> u don't see scroll bar (bug)
No recors found -> u don't see scroll bar
No recors found -> u see scroll bar again
I am not sure why is this doing ?
I would appretiate if some one has a solution to this problem.
Thanks
Arun