|
The secret in my expeience is to set the widths after setting
the content and then call invalidate. I found setting the dataProvider
reset the widths. Example:
dg.dataProvider = dp;
dg.getColumnAt(0).headerText = "Name";
dg.getColumnAt(1).headerText = "Project"; dg.getColumnAt(2).headerText = "Due Date"; dg.getColumnAt(0).width = 220;
dg.getColumnAt(1).width = 160; dg.getColumnAt(2).width = 120; dg.invalidate();
Bill Lane
===================== Web Developer Educational Media Group PVC Teaching and Learning Portfolio RMIT University Tel: 61 3 9925 9804 Fax: 61 3 9925 9625 [EMAIL PROTECTED] ===================== >>> [EMAIL PROTECTED] 05/09/05 4:15 pm >>> is there a hack to get the datagridcolumns to represent the widths they are set to? what's the secret? --- You are currently subscribed to fugli as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/ You are currently subscribed to fugli as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/ |
- [fugli] Re: datagrid columns Bill Lane
- [fugli] Re: datagrid columns grantmr
