Datagrid Column resizing

C

Chakravarti Mukesh

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
 
P

Patrick.O.Ige

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top