-3
你好,我想這個代碼轉換成VCL德爾福:如何將此代碼轉換成的DevExpress VCL爲Delphi
// Create an empty list.
ArrayList rows = new ArrayList();
// Add the selected rows to the list.
for (int i = 0; i < gridView1.SelectedRowsCount; i++) {
if (gridView1.GetSelectedRows()[i] >= 0)
rows.Add(gridView1.GetDataRow(gridView1.GetSelectedRows()[i]));
}
try {
gridView1.BeginUpdate();
for (int i = 0; i < rows.Count; i++) {
DataRow row = rows[i] as DataRow;
// Change the field value.
row["Discontinued"] = true;
}
}
finally {
gridView1.EndUpdate();
}
我試圖做同樣的,但在VCL沒有SelectedRowsCount或GetSelectedRows在哪裏可以發現雖然?
堆棧溢出不是一個代碼轉換服務.. – stuartd
如果有人到VCL會知道如何把這段代碼轉換。我無法在gridview中找到這些方法 – ververicka
該組件是否不附帶文檔? – stuartd