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 » Grid Collapse All
Subject Author Date
Paolo Giustinoni Sep 8, 2005 - 4:32 PM

I have a question regarding your grid..


I need to insert a dialog box in a cell. Can I do this with your controls? I search over the internet but I can’t find any grid that support this feature.


The sample you provide don’t show this feature. If I can, I but IMMEDIATELY your controls..


Thanks, Paolo.

Paolo Giustinoni Sep 11, 2005 - 9:51 AM

First of all, thanks for your answer!


The grid in my project has not to be a large grid, so the handles to the window rapresented by the dialog box are not exceeding the number of handles limited by operating system.


For example: I have to associate to a doctor some hospitals, and these hospitals are not so much (max 10...). I saw an application made in Access that show this association doctor-hospital in this manner (using so called "subform") and my wish is to recreate this particular user interface. So i thought to insert a dialog box in a grid cell to do so.


Using a free grid control posted to www.codeproject.com by Chris Mauder and paying attention to create and destroy correctly the window handles, I recreate this interface.


Anyway, if there is a better solution to this interface problem, I’ll be glad to discuss your opinions.


Paolo.

Technical Support Sep 10, 2005 - 11:55 AM

Any grid consists of cell objects which are not based on window handles. When you are editing a grid cell, some window is created on the fly (for editing) and it is destroyed when you finish editing. This grid design allows you to display and scroll the tabular data as smoothly as possible. That is why you cannot find a grid window with dialog windows inside grid cells. Besides, the HWND window handle is a system resource. You are not allowed to create a large number of windows. But the grid control with dialog window inside cells will eat a set of window handles for each cell. The total eaten handle number can be often close to the limit of Windows OS. So, it seems not a good approach.

Of course, we can spend some time and insert dialog windows into grid cells and we believe it’s possible. But this is not consistent with the general grid idea. The grid control, as well as the list box and many other controls with a list of items, must not create any window handles for its cells. There are lots of similar details in the grid control and dialog window. Both of them contains items which are part of them. Your task needs to be discussed in details to find a better solution.