Click here to Skip to main content
16,017,235 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
How can I get the data from VSFlexGrid using win32api?
I have the windows handle, but I can't get the data? or write a data to it.
I am able to write the data manualy, I want do do it with C++ or C# code.

Thank,
Gabi
Posted

1 solution

TO get data from VS Flexi Grid in VC++
create a member varibale to it and then using that
//For getting the data from the grid
m_Grid is the member variable then
if(int i=0;i<m_grid.getrows();i++)>
{
if(int i=0;i<m_grid.getcols();i++)>
{
m_Grid.GetTextMatrix(row,col,stringtoget);
}
}
//For setting the data to the grid
if(int i=0;i<m_Grid.GetRows();i++)
{
if(int i=0;i<m_Grid.GetCols();i++)
{
m_Grid.SetTextMatrix(row,col,stringtoset);
}
}
See either cols are rows will take one argument as 0 OK
if you cant create using the wizard means then you can create the object of that grid using the class of it and then access the methods of it
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900