Questions tagged [msflexgrid]

Microsoft FlexGrid control displays and operates on tabular data.

60 questions
1
vote
1 answer

Unselect/deselect row in DataGridView on click

I'm in the process of migrating VB6 code to VB.NET and we're up to the VS2013 stage, using .NET 4.5.2. In the original code, there are FlexGrids that allow row deletion on double-click and row selection/deselection on single click. I've got…
pixelmeow
  • 654
  • 1
  • 9
  • 31
1
vote
1 answer

VB6 MSFlexGrid - ColPos of Merged Columns

I'm working with a MSFlexGrid control in VB6, but I'm also having some problems retrieving the ColPos property for merged columns. The grid that I've generated looks something like this: ----------------------------- | 8/17/2010 …
derekerdmann
  • 17,696
  • 11
  • 76
  • 110
1
vote
1 answer

Why does vbkeyup produce different results than vbkeydown does in this Code

I have a VB6 app which consists of a flexgrid, two command buttons, and a text box. I have code to allow the user to press the up or down arrow key to switch rows in the grid. When the down arrow key is pressed the cursor is placed at the end of…
1
vote
1 answer

Make only one row show after search in FlexGrid VB6

So i have FlexGrid in my VB6 project I'm working on. It has names on each row, and I have a drop down so the user can select what name they want to see more info for, here is what I have. Dim target_name As String Dim r As Integer ' Get the…
Andeeh
  • 99
  • 1
  • 4
  • 12
1
vote
1 answer

Can't close userform

Let me set up the environment. This is VBA code running in Excel. I have a userform that contains a msflexgrid. This flexgrid shows a list of customers and the customer', salesperson, csr, mfg rep, and territories, assignments. When you click in a…
1
vote
3 answers

MSFLEXGRID slow navigation between cells

I am using msflexgrid in my vb6 application, It do work fine,but if any cell has large content then the problem comes. the problem is that when we navigate in grid by using arrow buttons, navigation becomes very slow when the cell with large content…
IT researcher
  • 3,274
  • 17
  • 79
  • 143
1
vote
1 answer

MergeCol does not work while MergeRow does

I have a small MSFlexGrid with 1 fixed column, and 2 fixed rows. As you can see MergeRow works in the top row. I want the 2 top cells from the first column to merge as well, but the separation remains. The code I am using is: with grdPrm …
Hrqls
  • 2,944
  • 4
  • 34
  • 54
1
vote
1 answer

Change cell background color without changing focus

On a form I have 4 MSFlexGrids. The top grid contains dynamic data, which updates once in a while. The user can enter data in the cells of the 3 other grids. The data which is used to fill the top grid is received via a Winsock control, processed,…
Hrqls
  • 2,944
  • 4
  • 34
  • 54
1
vote
2 answers

msflexgrid Unicode

I have an old project that I am trying to Unicode enable. I am trying to put Unicode data into an msflexgrid, but it comes out as question marks. Is there some trick to getting MSFlexGrid to work with Unicode data? Will it work at all? If not, is…
Adam Tegen
  • 25,378
  • 33
  • 125
  • 153
1
vote
2 answers

Inline data representation

I would like to represent data that gives an overview but allows them to drill down in an inline fashion - so if you had a grouping of say 6 objects the user could expand the data and it would show the 6 objects immeadiately below it before any more…
graham.reeds
  • 16,230
  • 17
  • 74
  • 137
1
vote
2 answers

Force fit column of flexgrid

What is best way to force fit the columns of msflexgrid in vb6? so, that all columns are visible and they occupies maximum width of grid! I've tried this code but it does not properly fit last column inside the grid, can anyone suggest what could…
Vinay K
  • 463
  • 6
  • 18
1
vote
1 answer

Expand Collpase Row In FlexGrid VB6

How to have FlexGrid in vb6, in Which we can expand and collapse row, if it is possible in vb6 FlexGrid then please tell me how?
Vinay K
  • 463
  • 6
  • 18
1
vote
1 answer

Numbers formatted using scientific notation in the MSFlexGrid on Windows 7

I installed a vb6 application on windows seven and office 2010. This application works fine on xp/vista with Ms access 2007. The MsflexGrid shows wrong numbers on win seven with the sign "E" like 4526E ... What could be the problem. is it access…
med_alpa
  • 311
  • 1
  • 5
  • 17
0
votes
1 answer

How to focus the next cell while clicking tab key and cell coloring

I am new to vb Flexgrid Header 01 .... 31 Values ......... I am entering the values at run time in flexgrid cell, if i click tab button, the focus will move to next cell on the same row. Code for Ascii Private Sub flexgrid_KeyPress(KeyAscii As…
Gopal
  • 11,712
  • 52
  • 154
  • 229
0
votes
3 answers

How to correctly calculate the height of a table

How do you calculate the height of a flexgrid table in VB6 so that it only contains the number of filled rows. Currently myFlexGrid.Height = (myFlexGrid.CellHeight * myFlexGrid.Rows) ' paraphrased from code comes out at about 3 pixels short per…
graham.reeds
  • 16,230
  • 17
  • 74
  • 137