HighTechTalks DotNet Forums  

set autosize of datagrid to no

Dotnet FAQs microsoft.public.dotnet.faqs


Discuss set autosize of datagrid to no in the Dotnet FAQs forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
raymond chiu
 
Posts: n/a

Default set autosize of datagrid to no - 12-28-2005 , 11:11 PM






Dear all,

How can I set the datagrid autosize properties to be zero? as I don't find
this properties in datagrid.
The situation is that I have set the datagrid width to be 200px but when I
auto create columns in datagrid and it occur the whole width of the page in
run time due to more columns inserted than design time.

Any ways to do?



Reply With Quote
  #2  
Old   
Christopher Reed
 
Posts: n/a

Default Re: set autosize of datagrid to no - 12-28-2005 , 11:23 PM






You probably want to turn off autogenerate of columns and use only the
columns you want and need. Even if you want all of the columns, this will
allow you to set the column widths.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"raymond chiu" <rchiu2hk (AT) yahoo (DOT) com.hk> wrote

Quote:
Dear all,

How can I set the datagrid autosize properties to be zero? as I don't find
this properties in datagrid.
The situation is that I have set the datagrid width to be 200px but when I
auto create columns in datagrid and it occur the whole width of the page
in run time due to more columns inserted than design time.

Any ways to do?





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.