Home > Back-end >  About the dbgrid assigned to two associated combobox
About the dbgrid assigned to two associated combobox

Time:09-21

Early implementation: in the dbgrid mouse scroll line including classification, classification of small two fields assigned to two combobox classification choice after small classification ascertain by small range field fu to determine the value of the mouse in the dbgrid scroll to select two combobox corresponding can realize precise? Or use other's own control implementation can also
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 control

CodePudding 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,
  • Related