Professional UI Solutions
Site Map   /  Register


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 » CExtGridCellFile again... Collapse All
Subject Author Date
Itay Shahaf Aug 13, 2007 - 6:43 AM


1. Is there any way to set the initial path of the open file dialog of the CExtGridCellFile ?

2. Whenever the user choose a cell of my CExtGrid the whole row is being colored blue , Is there any way to avoid it ?

Thanks, Itay.

Technical Support Aug 14, 2007 - 1:20 PM

You should simply assign text to the file grid cell using its TextSet() method and specify the file path in the string parameter.

Suhai Gyorgy Aug 14, 2007 - 2:47 AM

1. I can see only one solution for this right now, althought personally I don’t really like solutions like this: Derive a class from CExtGridCellFile (See this FAQ) and override its OnButtonPressed method. Copy all source of original CExtGridCellFile::OnButtonPressed method into your method and just before the line consisting dlgFileDialog.DoModal(), place one more line:
dlgFileDialog.m_ofn.lpstrInitialDir = _T("path of your choice");
This will cause the open file dialog to use the given path as the initial one in every case. Check out OPENFILENAME structure in MSDN for more info on how the initial path is determined.

2. You need to remove __EGBS_SFB_FULL_ROWS style from your grid with SiwModifyStyle method. Check out ProfUIS Help file for all available styles and their meanings.