|
I have displayed the data from SQL Server in the DBGrid. Now I want the user to select a row of records and display them in the corresponding control. What should I do?
For example: a table in the database has three fields: name (char), password (char), purview (char). I have a datasource in my program.
Now that the data is displayed in the DBGrid, the corresponding fields of the record selected in the DBGrid (with three fields) need to be displayed in the three controls edit1, edit2, and edit3 respectively. |
|