By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,165 Members | 1,928 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,165 IT Pros & Developers. It's quick & easy.

mshflexgrid Problem

P: n/a
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

Feb 21 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a

"doller" <su********@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.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 ??

Feb 21 '06 #2

P: n/a
HI Homer,

Application development on vb6 and the view is MSHFLEXGRID

from
Doller

Feb 21 '06 #3

P: n/a

"doller" <su********@gmail.com> wrote in message news:11**********************@f14g2000cwb.googlegr oups.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.

Feb 21 '06 #4

P: n/a
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
Feb 21 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.