Home All Groups Group Topic Archive Search About
Author
21 Feb 2006 3:33 AM
doller
Hi Dear ,

I have a mshflexgrid control on the VB form having 200 rows .I need to
add a row before or after the selected row in the grid.

As wee do in excel

we can add rows before or after the selected row.

Pls help as this is very important for me.

from
Doller

Author
21 Feb 2006 4:02 AM
Homer J Simpson
"doller" <sufiana***@gmail.com> wrote in message
news:1140492788.749865.41100@f14g2000cwb.googlegroups.com...

> I have a mshflexgrid control on the VB form having 200 rows .I need to
> add a row before or after the selected row in the grid.
>
> As we do in excel
>
> we can add rows before or after the selected row.
>
> Pls help as this is very important for me.

VB6 or VB .Net?

mshflexgrid or datagridview ??
Author
21 Feb 2006 4:07 AM
doller
HI Homer,

Application development on vb6 and the view is MSHFLEXGRID

from
Doller
Author
21 Feb 2006 7:11 AM
Homer J Simpson
"doller" <sufiana***@gmail.com> wrote in message news:1140494872.069891.177890@f14g2000cwb.googlegroups.com...

> Application development on vb6 and the view is MSHFLEXGRID

Use the BandColindex in that case:-
MSHFlexGrid.AddItem(string, BandColindex)
The AddItem method syntax has these parts:

      Part Description
      object An object expression that evaluates to an object in the Applies To list (MSHFLEXGRID).
      string Required. A string expression displayed in the newly added row. To add multiple strings (for multiple columns in the row), use the tab character (vbTab) to separate each string.
      index Optional. A Long value indicating the position within the control. This position is where the new row is placed. For the first row, index=0. If index is omitted, the new row becomes the last row in the band. Note that index is BandColIndex in the MSHFlexGrid.
Author
21 Feb 2006 7:19 AM
Cor Ligthert [MVP]
Doller,

It is asked because this is not a VB classic or sometimes names VB6
newsgroup.

This is VBNet to different to handle in one newsgroup.

For VB classic are the newsgroups with the name
microsoft.public.vb* there are much.

As advice try it in
microsoft.public.vb.generaldiscussion

That one is still very active.

I hope this helps,

Cor