Hello,
I have a form which as DBGrid and can see the records from customer database. Now I have another form say Form2 which has 5 DBEdit components which is connected to the database customer number, first name, last name, phone and address.
Now I want to edit the records in DBGrid. I want that If I click on any record in DBGrid its corresponding data is entered in Form2's DBedit boxes and i can edit the data and save it.
Can someone help as to how to make the corresponding data entered in DBEdit boxes...
I dont know which property of DBGrid to use when i write this line
Form2.DBEdit1.text :=Form1.DBGrid1.someproperty(first_name);
I am not sure if this line is also correct.
regards
Pooja
I have a form which as DBGrid and can see the records from customer database. Now I have another form say Form2 which has 5 DBEdit components which is connected to the database customer number, first name, last name, phone and address.
Now I want to edit the records in DBGrid. I want that If I click on any record in DBGrid its corresponding data is entered in Form2's DBedit boxes and i can edit the data and save it.
Can someone help as to how to make the corresponding data entered in DBEdit boxes...
I dont know which property of DBGrid to use when i write this line
Form2.DBEdit1.text :=Form1.DBGrid1.someproperty(first_name);
I am not sure if this line is also correct.
regards
Pooja