Solved

DBGrid in VC++

Posted on 1998-11-23
1
376 Views
Last Modified: 2011-10-03
hwo do i get the text of a selected cell in a MS-DBGrid (databound) control?
0
Comment
Question by:svibhu
1 Comment
 
LVL 4

Accepted Solution

by:
pagladasu earned 50 total points
ID: 1178524
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

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question