Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » GridColumnDefaultValueBind Collapse All
Subject Author Date
Suhai Gyorgy Aug 17, 2007 - 8:53 AM

Dear Support,

I’ve been trying to use your CExtGridWnd::GridColumnDefaultValueBind method. When specifying a column index >= zero, everything works fine. Your Help file says if I set first parameter (column index) as a negative value, the method will bind the given cell to all columns. I tried this version (would save me a loop), but any subsequent GridCellGet call with NULL as parameter for CRuntimeClass failed.
Stepping through your code for CExtGridWnd::GridColumnDefaultValueBind, I can’t see where it handles negative column index value differently from non-negative values. Could you please check this issue? Or would you like me to make a small sample application for demonstrating this problem?

Thank you!

Technical Support Aug 17, 2007 - 1:20 PM

We confirm the problem with the method description in help. Thank you. The method was not designed to assign the default value for one column only because it is not often needed to assign all the grid cells in all columns with the same value.