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 » resizing column for single column Collapse All
Subject Author Date
Gunasekaran Velu Aug 31, 2005 - 3:21 AM

 


  hi folks


    i want resizing the single column in dynamically.but for me all columns are resizing. can u suggest any idea for that or give the ref.


 


Thanks


Guna

Gunasekaran Velu Aug 31, 2005 - 7:57 AM

 


hi


this is my code for resizing the column


m_wndGrid.SiwModifyStyle( 0, __EGBS_FIXED_SIZE_COLUMNS  );


 m_wndGrid.SiwModifyStyle(
  __ESIS_STH_PIXEL|__ESIS_STV_PIXEL|__EGBS_SFB_CELLS|__EGBS_NO_HIDE_SELECTION
   |__EGBS_RESIZING_CELLS_OUTER|__EGBS_RESIZING_CELLS_INNER
   **//|__EGBS_FIXED_SIZE_COLUMNS|__EGBS_FIXED_SIZE_ROWS
   //|__EGBS_DYNAMIC_RESIZING_H|__EGBS_DYNAMIC_RESIZING_V
   |__EGBS_GRIDLINES
  ,
  0,
  false
  );  


but if i comment hte  |__EGBS_FIXED_SIZE_COLUMNS (**) mention above by ** the column won’t resizing i don’t know what happend. if i did not comment that line the each every column should be resizing .


so plz help me


Thanks


Guna

Technical Support Aug 31, 2005 - 10:31 AM

The grid control uses header cells to keep information about the width and height for a particular column and row correspondingly. First of all, please ensure your grid window has at least one header row at the top and each item in this row is initialized with an instance of the CExtGridCellHeader class.

Technical Support Aug 31, 2005 - 6:48 AM

Please make sure that the __EGBS_FIXED_SIZE_COLUMNS style (all the columns have an equal width) is not applied to your grid control. You can remove this style with the code line below:

m_wndGrid.SiwModifyStyle( 0, __EGBS_FIXED_SIZE_COLUMNS  );