1.

Solve : C++ Builder 6 - Getting a value from a DBGrid?

Answer»

Hi,

How can I do the following?
I have a DBGrid and I need to get values that grid.
When I click on a cell in the grid, I need to get all values in the selected row.
If for example there are 3 columns named ID, NAME and age.
If I click a cell in the grid, the value for the Id is displayed in a textbox, the value for name in another one and also the value for age in another textbox.
That is I need to display individual column values for the selected row in a TEXT box for each one.

Can anyone help me?

Thanks.
RowinThis is a logical question
You are saying how can i PROGRAM this method
I naver done this before, but if you look in the grid function (grid.?) it should show all the possible action.
If you dont know what to look for then just copy and peste the name in to a google and it should explain what they mean.



Discussion

No Comment Found