rhysmeister
Programmer
I can use SelectedIndex to return the selected column index value in a DBGrid. Is there a similar function which will return the row index value?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
ParamByName('SelectedParam').AsInteger := DBGrid1.SelectedRows.Count + 1;
ParamByName('SelectedParam').AsString := DBGrid1.SelectedField.AsString;