Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help me: Remove a Selected Row of Flexgrid

Status
Not open for further replies.

justmee

Programmer
Apr 25, 2006
3
CH

Hello,
Please help me remove a selected row of flexgrid.
Could you help me?:)
 
Hi,
Try this example.

Private Sub MSHFlexGrid1_Click()

Dim Entry, i, Msg ' Declare variables.
Msg = "Choose OK to add 100 items to your MSHFlexGrid."
MsgBox Msg ' Display message.
MSHFlexGrid1.Cols = 2 ' Two strings per row.
For i = 1 To 100 ' Count from 1 to 100.
Entry = "Entry " & Chr(9) & i ' Create entry.
MSHFlexGrid1.AddItem Entry ' Add entry.
Next i
Msg = "Choose OK to remove every other entry."
MsgBox Msg ' Display message.
For i = 1 To 50 ' Determine how to
MSHFlexGrid1.RemoveItem i ' remove every other
Next i ' item.
Msg = "Choose OK to clear all items."
MsgBox Msg ' Display message.
MSHFlexGrid1.Clear ' Clear list box.
End Sub
 
The above example look just like the MSDN Library code.

Look there...just search for MSFLEXGRID and you will get more detailed info.
 
How do you select row? Do you use MSFlexgrid's built in capabilities to select row, or have you written your own code? Also, if you use MSFlexgrid's capabilities, you should realize that you can have more than 1 consecutive row selected.

Nikita
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top