Kiran Angara
2019-05-17T06:22:46Z
Hello,

I am trying to show additional grid control to the main grid control cell combo for additional information.
But unable to align additional grid properly especially to the main grid last rows (as show in image 1)
23

Click to View Image


Expecting similar behaviour as shown in image 2
24

Click to View Image



Thank you.
Igor/10Tec
2019-05-17T15:34:49Z
Is it a question related directly to iGrid? Can you show us your code? And what is your development environment?
Kiran Angara
2019-05-18T01:32:08Z
Yes sir it is related to igrid but would like to know whether can get same behaviour with igrid as shown in image 2.

Actually when user click on the cell combo i want to cancel (bcancel=true) default drop down behaviour and show another igrid control with additional data related to column.
Igor/10Tec
2019-05-18T08:10:22Z
Process the RequestEdit event: set its bCancel parameter to True and display your form with the second grid.
Kiran Angara
2019-05-18T09:24:03Z
Yes i try the same way as suggested and its working too but i want position of the second grid to be exactly as shown in image 2
Igor/10Tec
2019-05-20T14:15:16Z
I asked you to show us your code. It's impossible to say what is wrong without seeing it...
Kiran Angara
2019-05-21T08:04:44Z
  iGridCombo 1.1.zip (31kb) downloaded 45 time(s).

Uploaded sample project for your kind perusal.

25

Click to View Image


Igor/10Tec
2019-05-21T10:40:03Z
Kiran, if I understand you right, you need to retrieve the screen height and check whether the bottom of the gFilter grid you display with the following statement

gFilter.Move _
    iGridCharacteristics.Left + (lLeft + 2) * Screen.TwipsPerPixelX, _
    iGridCharacteristics.Top + (lTop + lHeight + 2) * Screen.TwipsPerPixelY, _
    gFilter.Width, _
    gFilter.Height

will be below the screen's bottom edge. If so, then you need to show the gFilter form above the current cell:

gFilter.Move _
    iGridCharacteristics.Left + (lLeft + 2) * Screen.TwipsPerPixelX, _
    iGridCharacteristics.Top + (lTop + 2) * Screen.TwipsPerPixelY - gFilter.Height, _
    gFilter.Width, _
    gFilter.Height

But note that the gFilter grid is limited by the boundaries of the form as it is a control on it.

To retrieve the screen resolution in VB6, you can use one of the techniques described in this StackOverflow thread:

How do I detect my display's resolution in VB6? 

Does all this help to solve your problem?