Novice description is not clear, please put forward in time. Thanks
CodePudding user response:
Use Delphi for a long time, by feeling,1, as if a onscroll event dbgrid, read inside big classification, two small classification field values,
2, the classifying large combobox assignment,
3, classified refresh the combobox,
4, to the small classification combobox assignment,
These steps are in onscroll event,
CodePudding user response:
Agree with upstairs, a correction, not the DBGrid OnScroll event, but AfterScroll event data set controlCodePudding user response:
Currently, the main reading the database two ways, fortune DataSnap and local direct connection,1, C/S mode, unfavorable DBGrid OnScroll event filter data, and through the SQL command, use the combobox specified conditions to select,
2, the local data, after connection, can through the DBGrid AfterScroll events, filter the data set,