|
-
May 2nd, 2002, 08:50 AM
#1
Thread Starter
Frenzied Member
Flexgrid
I need code that will delete the line highlighted by a user in a MSFlexGrid.
I've tried :
MSFlexGrid1.removeItem
But the program is looking for an index number.
-
May 2nd, 2002, 08:54 AM
#2
Hyperactive Member
VB Code:
With myGrid
If (.Row = .RowSel) Then
.RemoveItem (.Row)
Else
MsgBox "You can only remove one record at a time!", _
vbInformation, _
"Delete"
End If
End With
This allows 1 row to be deleted
-
May 2nd, 2002, 09:30 AM
#3
Hyperactive Member
Guess my code didn't work.
-
May 2nd, 2002, 09:51 AM
#4
Thread Starter
Frenzied Member
Yes the code works ... in the sence that the row is removed from the Grid, but doesn't delete it from the database.
How do I delete it from the data source aswell???
-
May 2nd, 2002, 10:02 AM
#5
Hyperactive Member
Choice 1 : In code using ADO where you got the data from in the first place.
Choice 2 : Bind the grid to the data. (bad idea)
-
May 2nd, 2002, 10:17 AM
#6
Thread Starter
Frenzied Member
How do I do this?
Choice 1 : In code using ADO where you got the data from in the first place.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|