TDataSet* ds = DBGrid1->DataSource->DataSet; int count = DBGrid1->SelectedRows->Count; for(int i=0;i<count;i++) { ds->GotoBookmark((void*)DBGrid1->SelectedRows->Items[i].c_str()); ShowMessage(ds->Fields->FieldByName("xm")->AsString); }
c++ builder 获取DBGrid多选数据某个字段的值
最新推荐文章于 2020-11-26 13:20:39 发布