Show Bid Request
vb.net datagrid autowidth column
Bid Request Id: 28084
|
|
|
Posted by: |
Atticus (2 ratings)
(Software buyer rating 10)
|
Non-action Ratio: |
Very Good - 0.00%
|
Buyer Security Verifications: |
Unverified
|
Approved on: |
Sep 19, 2002 11:04:44 PM EDT
|
Bidding Closes: |
Sep 22, 2002 11:08:54 PM EDT
|
Viewed (by coders): |
275 times
|
Deadline: |
9/22/2002 11:08:54 PM
TIME EXPIRED
|
|
|
|
Description:
I need an example of how to automatically change the widths of a column in a vb.net datagrid. As the user types in text in a textbox or combo box in the grid the column should get wider to accomodate the new text.
Deliverables: 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
Platform:
Windows 2000
Must be 100% finished and received by buyer on:
Sep 22, 2002 11:08:54 PM EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.
Special Conditions / Other:
Must be completed by 09/22/2002
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
|
This bid was accepted by the buyer!
|
$8 (USD)
|
Sep 20, 2002 9:03:26 AM EDT
|
10
(Excellent)
|
|
|
Hello
Here is a simple example how to resize:
Private Sub DataGrid1_AfterColUpdate(ByVal ColIndex As Integer)
Dim nLen As Long
With DataGrid1.Columns ColIndex) .Width = Len(.Text) * 100 End With End Sub
You may want to change the value 100 for another if your font size is different to default size and or you use pixels instead of twips
Hope this help
Marcos
|
|
|
|
|
|