Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Get text from selected rows cell from DBGrid (BC++6)

Hello, i have a problem,i have DBGrid table populated by sql query and i need to get the text what is in first column of selected row.I tryed some propertyes and functions from TDBGrid but it didnt work out.
Thank for interest
Alex
[245 byte] By [alex33] at [2007-11-11 10:08:17]
# 1 Re: Get text from selected rows cell from DBGrid (BC++6)
ok i have it,its simple, just:

String text;
text = DBGrid1->SelectedField->AsString;
alex33 at 2007-11-11 20:59:20 >