GCC column resize, NonEditable problem

1) how to make the columns width of a table present in GridGroupingControl datagrid autofit, so as on resize of the form the columns width adjust themselves. 2)I wish to make the datagrid behave like that only for any table, with any number of columns. Will i need to change the table Descriptor setting. 3)If Table Descriptor''s AllowEdit is set True, the GCC still allow to Select and delete the text of the grid,the backspace work as well!!! Is there any way to stop this feature. 4)If Possible, please do send some running code as the GCC knowledge Base also desperately needs it,as no such code availble for GCC in the Forums. Thanks In Advance, Rahul Sharma

3 Replies

AD Administrator Syncfusion Team April 18, 2006 04:23 PM UTC

Hi Rahul, You can make the column width auto fit, by handling the QueryColWidth event in TableModel class. In the event, the size of the column can be changed depend on the ClientSize. The AllowEdit property is working fine in our latest version ( 4.1.0.62 ), please refer to the sample for more details. Sample : ColumnWidthResizing_GGC Let us know if this helps. Best regards, Madhan


RS Rahul Sharma April 21, 2006 08:53 AM UTC

Thanks for the Help and regarding NonEditable problem ,I believe as i dont have the version mentioned by you i will have to set that programmatically. Thanks for the Sample code as well, if possible do add the VB code for that sample.


AD Administrator Syncfusion Team April 21, 2006 09:13 AM UTC

Hi Rahul, Thanks for your update. Please follow the forum thread below for the download details of the latest version(4.1.0.62) of EssentialStudio http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=41784 Here is a modified VB sample. http://www.syncfusion.com/Support/user/uploads/VB_6d16efd0.zip Please let us know if this helps. Thanks for choosing Syncfusion Products. Regards, Haneef

Loader.
Up arrow icon