| | |
how to resize datagrid
Please support our VB.NET advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Aug 2006
Posts: 7
Reputation:
Solved Threads: 0
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
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
•
•
Join Date: Aug 2006
Posts: 22
Reputation:
Solved Threads: 0
•
•
•
•
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
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.
![]() |
Similar Threads
- How to resize a Windows 2003 partition? (Windows NT / 2000 / XP)
- The name for the Resize Button to ad to Script (HTML and CSS)
- disable datagrid column width adjustment at runtime (C#)
- DataGrid scrollbars not refreshing on resize (C#)
Other Threads in the VB.NET Forum
- Previous Thread: Database table convert to xml document to cache
- Next Thread: Crystal Report8.5....
Views: 5503 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
.net .net2008 2005 2008 access account application array arrays basic bing button buttons c# center check checkbox code convert crystalreport data database datagrid datagridview date design designer dissertation dissertations dropdownlist excel fade file-dialog filter ftp generatetags google gridview hardcopy images inline input insert installer intel internet listview mobile monitor net networking objects output panel passingparameters picturebox port position print printing problem read remove save searchbox searchvb.net select serial shutdown soap sorting studio survey table tcp temperature text textbox time timer timespan toolbox trim update user validation vb vb.net vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet visual visualbasic visualbasic.net visualstudio2008 web webbrowser winforms wpf year





