How can I refer to additional data in a selected record? It appears that in order to get the data in a field, I need to know the index number for that row, and yet it does not appear that the index number for a row is something that is readily available.
In Delphi, I would do something like this:
StringS := Table1.FieldByName('Field1').AsString;
How do I get the value of a field based upon the selected row.
If someone can answer this, I have an additional difficulty. It appears that the data binding for a datagrid does not necessarily match that of the form itself. If I tie the form and grid bindings together on each cell change for the grid, it works until someone clicks on a grid column and sorts the grid. Is there a way to tell how the grid row corresponds to the forms row?
Brian
"There are 2 kinds of people in the world, those that divide people into two groups and those that don't. I belong to the second group." - tag line I stole
In Delphi, I would do something like this:
StringS := Table1.FieldByName('Field1').AsString;
How do I get the value of a field based upon the selected row.
If someone can answer this, I have an additional difficulty. It appears that the data binding for a datagrid does not necessarily match that of the form itself. If I tie the form and grid bindings together on each cell change for the grid, it works until someone clicks on a grid column and sorts the grid. Is there a way to tell how the grid row corresponds to the forms row?
Brian
"There are 2 kinds of people in the world, those that divide people into two groups and those that don't. I belong to the second group." - tag line I stole