DBGrid

Hello

Is it possible to enable user to use a DBgrid's scroll bars but, unable them to change the columns sizes ???

Further more, how is it possible to know, which is the highlighted line (in the DBgrid)
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.

bja1Commented:
Are you using data controls for the grid?
0
mcriderCommented:
Using MSFlexGrid:

   MSFlexGrid1.ScrollBars=3 'Turns on both scrollbars
   MSFlexGrid1.AllowUserResizing=0 'Disables resizing

   x=MSFlexGrid1.RowSel 'returns selected row

   x=MSFlexGrid1.ColSel 'returns selected col

   x=MSFlexGrid1.Row 'returns the selected cells row

   x=MSFlexGrid1.Col 'returns the selected cells col


Cheers!
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
mcriderCommented:
If you're using Microsoft Grid Control instead of Microsoft FlexGrid Control, I suggest you migrate...  You can't turn off resizing with the grid control.


Cheers!
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:
OK, but if I'm using the flex grid, how can I detemine different column sizes ???
0
mcriderCommented:
X=MSFlexGrid1.ColWidth(Index)

Cheers!
0
mcriderCommented:
Index is the column you want...


Cheers!
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.