为了满足需要,就是当在某行最后一列按向右方向键,要回到该行第一列
因为datagrid默认,但该最后一列时再按右是回到下行第一列
为此,我响应了BOOL CTableView::PreTranslateMessage(MSG* pMsg) 
if(pMsg->message==WM_KEYDOWN && isDrag==false){
if(pMsg->wParam==VK_RIGHT && m_grid.GetCol()==m_grid.GetColumns().GetCount()-1){

m_grid.SetCol(1);
m_grid.SetLeftCol(0);

return TRUE;
}
if(pMsg->wParam==VK_LEFT && m_grid.GetCol()==1)
return TRUE;
}
可是,假如某行最后一列是30,当按右时,确实转到了该行第一列,但是该行第一列的值却变成了30!!!
这是怎么回事,问题好像就出在m_grid.SetCol(1);