home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,548 of 10,840   
   Raoul Watson to Lance   
   Re: setting datagrid column width?   
   08 Jun 05 10:08:04   
   
   From: WatsonR@IntelligenCIA.com   
      
   "Lance"  wrote in message   
   news:d7_oe.139639$dP1.490424@newsc.telia.net...   
   > Hi,   
   >   
   > I would like to set column widths in my datagrid at run time. I tried   
   > DataGrid1.Columns(i).Width  = xxx but it had no effect.   
   >   
   > I also looked at the design time properties page but was only able to set   
   > properties for columns 0 and 1.   
   >   
   > Any suggestions will be greatly appreciated.   
   >   
   > Thanks,   
   > Lance   
   >   
      
   The changes may not be noticeable if you use small numbers, try a big number   
   and work with 200 to 300 increments.   
      
        DataGrid.Columns(x).Caption = "Test Header"   
        DataGrid.Columns(x).Width = 1200   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca