|
-
Nov 8th, 1999, 09:11 AM
#1
Thread Starter
Hyperactive Member
-
Nov 9th, 1999, 01:57 AM
#2
Thread Starter
Hyperactive Member
-
Nov 9th, 1999, 02:02 AM
#3
What you described you did should work. Post your code or email me and I'll take a look at it.
------------------
Marty
-
Nov 9th, 1999, 02:08 PM
#4
Thread Starter
Hyperactive Member
Here it is Marty - thank you!
Set dgPlanBox3.DataSource = ThirdRsGrid
With dgPlanBox3
.Columns(2).Width = 0 'mgr name
.Columns(3).Width = 0 'mgr name
.Columns(1).Width = .Width - .Columns(0).Width ' - .Columns(1).Width
End With
With dgPlanBox3 'plan name column minus the other widths
dgPlanBox3.Columns(1).Width = .Width - .Columns(0).Width - .Columns(2).Width - .Columns(3).Width
End With
-
Nov 11th, 2003, 06:26 PM
#5
Member
You might want to try this
'---------------------------
dim iWidth as Integer
'Set first two columns
dgPlanBox3.Columns(0).Width = 0
dgPlanBox3.Columns(1).Width = 0
'set an integer to the caculated remaing width this will round to a whole number
iWidth = dgPlanBox3.Width - (dgPlanBox3.Columns(0).Width + dgPlanBox3.Columns(1).Width)
'set your third column to the remainder
dgPlanBox3.Columns(2).Width = iWidth
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|