-
Why is it that there is allways something that stops me dead in my tracks from doing what I want to do in Visual Basic? For example, the latest snag is the following:
I wanted to use a DataGrid on my form to display data in a table. But, I found out that the DataGrid doesn't have the "ScrollTrack" property which allows the grid to scroll as you are moving the scroll bar up and down.. So, I thought, okay, I'll just use the FlexGrid because it has the "ScrollTrack" property. But, then I found out that you can't format the cells so any numbers that are supposed to be in the currency format, will not be in the currency format..
I allways run into little problems like this.. Why can't Microsoft simply put the "ScrollTrack" property in the DataGrid and the Format cell property in the FlexGrid? It just doesn't make any sense.. It's like they're playing with you.
I can think of many other little annoyances like this but I won't bore you.. I just needed to get this thing off my chest.
Does any one have any idea how to mimic the "ScrollTrack" feature in FlexGrid for the DataGrid? I would really like to be able to have the grid scroll as I'm moving the scroll bars..
Thanks,
Dan
-
Hi there, experienced the same scenario before, and the only solution I've found is to try other 3rd Party controls, try Apex TrueDBGrid for instance.
-
i use MSFlegrid and the solution to the curency problem is to use format ie. The way I add data is like this:
Dim mydata as String
mydata= rst!Feild1_
&vbtab&format(rst!Feild2,"currency")
msflexgrid1.additem mydata
The additem might be off, don't have VB running right now.
Try it and see if it works for you.