Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

DBGrid in VC++

Posted on 1998-11-23
1
Medium Priority
?
419 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 100 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
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 learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses

877 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