Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Datagrid Column resizing (http://www.velocityreviews.com/forums/t121313-datagrid-column-resizing.html)

Chakravarti Mukesh 03-10-2006 08:24 AM

Datagrid Column resizing
 
Hi,
How can column width of DataGrid could be changed(in late data binding)? By
default width is decided by the column heading width.
Thnaks
Mukesh



Patrick.O.Ige 03-10-2006 01:47 PM

Re: Datagrid Column resizing
 
Have you tried using the "itemstyle-width"
Hope that helps
Patrick


"Chakravarti Mukesh" <cmukesh@sparshindia.com> wrote in message
news:ez13jzBRGHA.1728@TK2MSFTNGP11.phx.gbl...
> Hi,
> How can column width of DataGrid could be changed(in late data binding)?
> By default width is decided by the column heading width.
> Thnaks
> Mukesh
>




Patrick.O.Ige 03-10-2006 01:49 PM

Re: Datagrid Column resizing
 
Or you can do this for example for a button :-
Private Sub DataGrid1_ItemCreated(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.DataGridItemEventArgs) Handles
DataGrid1.ItemCreated
Dim drv As DataRowView
If e.Item.ItemType = ListItemType.Item Then
CType(e.Item.Cells(2).Controls(0), Button).Width =
Unit.Point(250)
End If
end if
Patrick


"Chakravarti Mukesh" <cmukesh@sparshindia.com> wrote in message
news:ez13jzBRGHA.1728@TK2MSFTNGP11.phx.gbl...
> Hi,
> How can column width of DataGrid could be changed(in late data binding)?
> By default width is decided by the column heading width.
> Thnaks
> Mukesh
>





All times are GMT. The time now is 01:02 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.