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.
Subject |
Author |
Date |
|
Shailesh Nikam
|
Jul 11, 2007 - 3:00 AM
|
Hi,
Iaˆ™d like to use a ExtGridCtrlWnd in a Dialog box. Is there any sample code that will tell how to use combo box, text control in grid contorl so that it can accept input from user. And how to add and delete row at runtime depending upon click of button? And how to disable particular column in the grid?
Regards, Shailesh
|
|
Technical Support
|
Jul 11, 2007 - 10:11 AM
|
1) You can see how to use a grid on a dialog in the Prof-UIS_Controls sample (the Grid page)
2) In the same sample you can find how to use all the available cells (35 types) including the combo box (CExtGridCellComboBox ) and text (CExtGridCellString ).
3) You can add and delete grid rows with the RowInsert() /RowAdd() and RowRemove() methods.
4) To disable the whole column, you should make all the column cells disabled (or read-only). You can make any grid cell read-only using this method pCell->ModifyStyle( __EGCS_READ_ONLY ); The in-place editor window for a particular grid cell will not be activated if you modify the cell styles in this way pCell->ModifyStyle( __EGCS_NO_INPLACE_CONTROL );
|
|