Multiple row selection in Delphi DBGrid - providing the ability to select multiple records within the grid. Learn this step of Delphi Database Programming.
Found it. DbGrid.Fields.AsString gets the value of the first column of the selected row.
I need to get the value of the three columns when it's selected the row on the dbgrid. Eg: I have a 3 rows on the dbgrid from the db, and when I select the second row, I press the button and I want to get the value of the row selected.
Get values from DBGrid • Databases • Examples for Delphi with complete source codes.
If I select a row, the DBGrid view is automatically reset to view the first column (As if I scroll back to the left most position). Is there a way to prevent that? ...
In our case, we need local code in our Delphi application to show row numbers in TDBGrid.
Anyone have any ideas how to also get the column names, before the value? For example 1st column is named ID, the 1st value shown on the memo is the ID value (let's say 15)
i need to get the id value of a selected row in the dbgrid. I would appreciate for any help. Thanks in advance.
Topics: How could I make a row selected when a user clicks on the cell on the DBGrid component ? DBGrid Multiselect - Delphi gets crazy
Delphi 2009 My aim is to let user select some rows in DBGrid, choose a value and using button "Set" - set this value in one field in choosen rows.