DBGrid

Hello
I've two questions:
A. If I want to create a DBgrid, which its colums' width are not equal, how do I do that ?

B. Do you know of a site, which allows to download a progress bar control, what diplays the processes' percent ?
lirongAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

TimCotteeHead of Software ServicesCommented:
A:

DBGrid1.Columns(0).Width = 400
DBGrid1.Columns(1).Width = 5000

etc

B:

There is a progress bar control in VB6 (Pro and Enterprise certainly, not sure about other versions.)

0
TimCotteeHead of Software ServicesCommented:
Other sources you could try are:

http://www.componentsource.com

http://www.davecentral.com

These have all sorts of controls, some free some shareware, others you have to pay full prices for, most have downloadable demos though.
0
TimCotteeHead of Software ServicesCommented:
Sorry about the URL links, they don't work properly.

http://www.componentsource.com 
http://www.davecentral.com 
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

lirongAuthor Commented:
Hi
I've tried to do, what you've told me but I've two problems:
The first one, that I've more than two colums. The other one, is that when I'm writing the code, there is NO effect on the DBgrid...
0
TimCotteeHead of Software ServicesCommented:
The grid will not change in size at design time. So if that is what you are expecting you will not see it.

You can use DBGrid.Columns(n).width = nnn for any column, if you want them all the same you could do:

for intColumn = 0 to DBGrid1.Columns.Count - 1
  DBGrid1.Columns(intColumn).Width = 300
next

The other method that might work and would allow you to see it at design time as well is to use the FormatString property, this sets default column headers and widths (I think so anyway, I don't have VB running at the moment to look at so if it doesn't apply I am sorry).
0
ventondCommented:
A. If you refresh the DBgrid or the Data tool it is bound to, the columns reset.

B. http://www.mvps.org/ccrp

They let you use all the Windows Common Controls individually.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
lirongAuthor Commented:
Nope

I've tested your code, but the columns' size didn't change. Further more, after I'm writing DBGrid1.colums(0) and then pressing on the "." sign NO help text appear. Maybe I've forgotten to do something ??
0
lirongAuthor Commented:
Nope

I've tested your code, but the columns' size didn't change. Further more, after I'm writing DBGrid1.colums(0) and then pressing on the "." sign NO help text appear. Maybe I've forgotten to do something ??
0
TimCotteeHead of Software ServicesCommented:
Where did you put the segment of code? The best thing to do with it is probably in the Form_Resize event or at least somewhere that the grid will be affected, if you want to EMail me some example code to TimCottee@Earthling.net I will have a look for you.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.