|
In the same interface of DataGrid, set a delete button, how to delete the current DataGrid record
With VC6, no other patches were applied.
The idea is to first get the current index of the DataGrid control, use this index to delete records, and update the control.
The following code is incorrect. Please give pointers. Thank you!
CString strID = m_DataGrid.GetItem (0); // Get the index of the selected record
// Prompt GetItem () is not a function of the CDataGrid class, and I did not find this function in the CDataGrid class. |
|