Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Datagrid Column resizing

Reply
Thread Tools

Datagrid Column resizing

 
 
Chakravarti Mukesh
Guest
Posts: n/a
 
      03-10-2006
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


 
Reply With Quote
 
 
 
 
Patrick.O.Ige
Guest
Posts: n/a
 
      03-10-2006
Have you tried using the "itemstyle-width"
Hope that helps
Patrick


"Chakravarti Mukesh" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>



 
Reply With Quote
 
 
 
 
Patrick.O.Ige
Guest
Posts: n/a
 
      03-10-2006
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Resizing a div by resizing its borders Pil (Trustworthy from Experience) Javascript 9 04-21-2009 07:35 AM
Resizing a div by resizing its borders Proper Javascript 0 04-18-2009 08:02 PM
bind a dropdown in a column in a datagrid based on the dropdown value selected in another column of the datagrid. vishnu ASP .Net 1 03-25-2006 01:24 PM
how do i access a dropdownlists selected value in a datagrid edititemtemplate column from the selectedindexchanged event of another dropdownlist in a datagrid edititemtemplate column Dave M ASP .Net Datagrid Control 0 12-14-2004 11:53 AM
How to bind a db image column (byte array) to a datagrid column? Jim Hammond ASP .Net 1 11-26-2003 12:55 AM



Advertisments