how to resize datagrid

Please support our VB.NET advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Aug 2006
Posts: 7
Reputation: ohohling is an unknown quantity at this point 
Solved Threads: 0
ohohling ohohling is offline Offline
Newbie Poster

how to resize datagrid

 
0
  #1
Aug 15th, 2006
i hv create a table into the datagrid but how i going to resize the column size....

Dim Table1 As New DataTable("Customer")
Dim Row As DataRow


Try
Dim column1 As DataColumn = New DataColum("Customer Name")
column1.DataType = System.Type.GetTyp("System.String")
Table1.Columns.Add(column1)

Dim column2 As DataColumn = New DataColum("Customer Phone")
column2.DataType = System.Type.GetTyp("System.String")
Table1.Columns.Add(column2)


Catch
End Try

dgCustomer.DataSource = Table1

Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 22
Reputation: Amit007 is an unknown quantity at this point 
Solved Threads: 0
Amit007 Amit007 is offline Offline
Newbie Poster

Re: how to resize datagrid

 
0
  #2
Aug 15th, 2006
Originally Posted by ohohling
i hv create a table into the datagrid but how i going to resize the column size....

Dim Table1 As New DataTable("Customer")
Dim Row As DataRow


Try
Dim column1 As DataColumn = New DataColum("Customer Name")
column1.DataType = System.Type.GetTyp("System.String")
Table1.Columns.Add(column1)

Dim column2 As DataColumn = New DataColum("Customer Phone")
column2.DataType = System.Type.GetTyp("System.String")
Table1.Columns.Add(column2)


Catch
End Try

dgCustomer.DataSource = Table1

Solution By Amit S:
This problem can be handled by using table styles. Try by reading help on "tablestyles" and if you still cant find the solution, mail me at coolamit0072003@hotmail.com. I will try to solve your problem by supplying you more details.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 5503 | Replies: 1
Thread Tools Search this Thread



Tag cloud for VB.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC