DDV_GXGridWnd
void AFXAPI DDV_GXGridWnd(CDataExchange* pDX, CGXGridCore* pGrid);
pDX
A pointer to a CDataExchange object.
pGrid
A pointer to the grid window.
Remarks
You should call this data validation routine when you are using a grid in a CDialog from the dialog’s DoDataExchange method, as in the following example:
void CSample5Dialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CSample5Dialog)
DDX_Text(pDX, IDC_EDIT1, m_nEdit);
DDV_MinMaxInt(pDX, m_nEdit, 0, 100);
DDX_Text(pDX, IDC_EDIT2, m_nVal2);
DDV_MinMaxInt(pDX, m_nVal2, 0, 100);
//}}AFX_DATA_MAP
// validation routine for CGXGridWnd controls
DDV_GXGridWnd(pDX, &m_wndGrid);
}