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 General Discussion » Data Grid on Dialog Collapse All
Subject Author Date
Lars Fischer Oct 14, 2005 - 10:01 AM

Hi all,

i’d like to put a datagrid on a dialog within C++ (MSVC 6). I’d love to use the grid like the one in "SimpleGrids" Sample. Is this possible.

Thanks in advance,

Lars

Rudyanto Herlambang Sep 20, 2012 - 5:05 AM

Hi.. I had the same problem too, could you send me that sample as well?

Thomas Roeder Nov 21, 2005 - 11:05 AM

Hi,


Not in your FAQ neither in Feature Articles I didn’t found any simple example/description with datagrid on dialog.


Could you send me that sample as well?


Thanks.

Technical Support Nov 21, 2005 - 11:44 AM

We sent you this sample by e-mail.

Gary Godfrey Nov 10, 2005 - 12:00 PM

I had the same question, think you could send me that sample as well?

Technical Support Oct 14, 2005 - 10:46 AM

We have just sent this sample to you.

Rudyanto Herlambang Sep 20, 2012 - 5:08 AM

Hi.. I had the same problem too, could you send me that sample as well?

Sergio Del Valle Apr 17, 2006 - 5:46 PM

Same thing, could you send me the sample please?

Lars Fischer Oct 17, 2005 - 2:15 AM

thanx for the sample, but the funtion textset won’t work,

i’ve tried something like this:

....
            CExtGridCell * pDataCell =
                m_PGC.GridCellGet(
                    x,
                    y,
                    0,
                    0,
                    RUNTIME_CLASS(CExtGridCell)                    
                    );
            ASSERT_VALID( pDataCell );
            pDataCell->TextSet("Hello World", true);
....

when i step down the source, i find the function textset:

void CExtGridCell::TextSet(
    __EXT_MFC_SAFE_LPCTSTR str, // = __EXT_MFC_SAFE_LPCTSTR(NULL) // empty text
    bool bAllowChangeDataType // = false
    )
{
    ASSERT_VALID( this );
    str;
    bAllowChangeDataType;
}

this looks a little bit strange to me. How can i set a text in the cells without a data source in the background?

Thx,

Lars

Technical Support Oct 17, 2005 - 8:19 AM

The CExtGridCell class is a base class for all other cell objects. It doesn’t keep any data (including the cell text) at all. Please use the CExtGridCellString class instead.

Lars Fischer Oct 17, 2005 - 9:47 AM

thanx, that hint worked ;)