K
kagejoy
Unregistered / Unconfirmed
GUEST, unregistred user!
一个DBGird控件 dbgridRecord,
设置属性 RowSelect 为true
下面一段代码,老是出错,提示EDBEngineError,Record/Key deleted.
这是怎么回事啊?望各位大侠指点迷津。
if (dbgridRecord->SelectedRows->Count > 0)
{
AnsiString s = "";
TDataSet *pDS = dbgridRecord->DataSource->DataSet;
for (int i=0;
i < dbgridRecord->SelectedRows->Count;
i++)
{
pDS->GotoBookmark((void *)dbgridRecord->SelectedRows->Items.c_str());
s = pDS->Fields->Fields[1]->AsString;
ShowMessage(s);
}
}
设置属性 RowSelect 为true
下面一段代码,老是出错,提示EDBEngineError,Record/Key deleted.
这是怎么回事啊?望各位大侠指点迷津。
if (dbgridRecord->SelectedRows->Count > 0)
{
AnsiString s = "";
TDataSet *pDS = dbgridRecord->DataSource->DataSet;
for (int i=0;
i < dbgridRecord->SelectedRows->Count;
i++)
{
pDS->GotoBookmark((void *)dbgridRecord->SelectedRows->Items.c_str());
s = pDS->Fields->Fields[1]->AsString;
ShowMessage(s);
}
}