Re: set autosize of datagrid to no

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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@xxxxxxxxxxxx> wrote in message
news:O%23Xr$7CDGHA.3140@xxxxxxxxxxxxxxxxxxxxxxx
> 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?
>
>


.



Relevant Pages

  • Re: SortCommand events not being caught
    ... The datagrid shows up on the page, but without the columns i'm adding ... executed (some are there at design time, the majority are added at runtime). ... Do you register the ... > datagrid 's sortcommand handler statically or dynamically at runtime? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to sort DataGrid using code?
    ... I have a Master DataGrid with: ... DataSource = dataSetClientInfo (set at design time) ...
    (microsoft.public.dotnet.framework.windowsforms)
  • programatically generated typed dataset?
    ... i am using the datagrid control. ... i config'd the adapter ... i noticed having the typed dataset produced nice behavior in the datagrid -- ... those controls at design time. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: DataGrid columns
    ... I am working with the MS DataGrid control in VB6. ... recordset it is looking at is of the form "select * from mytable". ... You can do this at run time or design time, ...
    (microsoft.public.vb.general.discussion)
  • Re: Databind DataGrid
    ... Will it update the grid? ... You can add this last column at design time or you ... Can you please help me on Template Column in DataGrid. ...
    (microsoft.public.sharepoint.portalserver.development)