Click here to Skip to main content
16,012,061 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Having trouble using Chris' Grid Control Pin
John M. Drescher25-Jul-03 13:14
John M. Drescher25-Jul-03 13:14 
GeneralRe: Having trouble using Chris' Grid Control Pin
John M. Drescher25-Jul-03 13:19
John M. Drescher25-Jul-03 13:19 
GeneralRe: Having trouble using Chris' Grid Control Pin
Terry O'Nolley25-Jul-03 14:15
Terry O'Nolley25-Jul-03 14:15 
GeneralRe: Having trouble using Chris' Grid Control Pin
Terry O'Nolley25-Jul-03 14:21
Terry O'Nolley25-Jul-03 14:21 
GeneralRe: Having trouble using Chris' Grid Control Pin
Terry O'Nolley25-Jul-03 15:00
Terry O'Nolley25-Jul-03 15:00 
GeneralRe: Having trouble using Chris' Grid Control Pin
Chris Maunder25-Jul-03 15:10
cofounderChris Maunder25-Jul-03 15:10 
GeneralRe: Having trouble using Chris' Grid Control Pin
Chris Maunder25-Jul-03 15:03
cofounderChris Maunder25-Jul-03 15:03 
GeneralRe: Having trouble using Chris' Grid Control Pin
Terry O'Nolley25-Jul-03 15:19
Terry O'Nolley25-Jul-03 15:19 
Hey there!

Thanks for making this tool available to us all. I was looking for a grid and couldn't find anything except for Active-X controls. Yours seemed to be just what I was looking for.

Chris Maunder wrote:
Have you declared IDC_GRID in your resource.h file?

It is declared and appears properly when I click the button to display the dialog box that contains it. The calls to m_Grid.SetColumnCount();, m_Grid.SetColumnCount(); & m_Grid.SetFixedRowCount(); work fine and the grid displays with the proper number of rows, columns and fixed rows.

But when I go the next step and call m_Grid.SetItemText(1, 1, "ID"); it returns FALSE.

Note that all of the above calls are in my OnInitDialog handler.


=============== EDIT =====================
Nevermind Smile | :) I discovered the problem. I was trying to set the text of the first (fixed) row but forgot to reference it as the zeroeth row. EXCELLENT work!!!!!!!!!!!!!!!!










GeneralRe: Having trouble using Chris' Grid Control Pin
Chris Maunder25-Jul-03 15:08
cofounderChris Maunder25-Jul-03 15:08 
GeneralMenu prompt Pin
Anonymous25-Jul-03 8:06
Anonymous25-Jul-03 8:06 
GeneralRe: Menu prompt Pin
Maximilien25-Jul-03 8:51
Maximilien25-Jul-03 8:51 
GeneralRe: Menu prompt Pin
Anonymous25-Jul-03 8:56
Anonymous25-Jul-03 8:56 
GeneralRe: Menu prompt Pin
Bob Stanneveld25-Jul-03 10:20
Bob Stanneveld25-Jul-03 10:20 
GeneralProblem with openin CommPort Pin
soobot25-Jul-03 8:02
soobot25-Jul-03 8:02 
GeneralRe: Problem with openin CommPort Pin
David Crow25-Jul-03 10:56
David Crow25-Jul-03 10:56 
GeneralRe: Problem with openin CommPort Pin
Majid Shahabfar25-Jul-03 18:32
Majid Shahabfar25-Jul-03 18:32 
Generalconverting scanned graph to coordinates Pin
Peter Molnar25-Jul-03 7:47
Peter Molnar25-Jul-03 7:47 
GeneralConvert Font! Pin
Dang Xuan Ky25-Jul-03 7:45
Dang Xuan Ky25-Jul-03 7:45 
GeneralRe: Convert Font! Pin
Anthony_Yio25-Jul-03 17:27
Anthony_Yio25-Jul-03 17:27 
GeneralActiveX container Tester Pin
sdfdsfa25-Jul-03 5:18
sdfdsfa25-Jul-03 5:18 
GeneralHelp with timer 8-J Pin
Snyp25-Jul-03 5:09
Snyp25-Jul-03 5:09 
GeneralRe: Help with timer 8-J Pin
AlexO25-Jul-03 5:13
AlexO25-Jul-03 5:13 
GeneralRe: Help with timer 8-J Pin
Snyp25-Jul-03 5:19
Snyp25-Jul-03 5:19 
GeneralLOL Pin
Snyp25-Jul-03 5:24
Snyp25-Jul-03 5:24 
GeneralRe: Help with timer 8-J Pin
Snyp25-Jul-03 5:25
Snyp25-Jul-03 5:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.