DBGrid in VC++

hwo do i get the text of a selected cell in a MS-DBGrid (databound) control?
svibhuAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
pagladasuConnect With a Mentor Commented:
Associate a member variable(control type) with the dbgrid control. Say it is called m_grid.
Now the text of the selected cell can be retrieved in a CString variable this way.
CString cellvalue;
cellvalue=m_grid.GetText();

Thanks and all the best
pagladasu
0
All Courses

From novice to tech pro — start learning today.