ive posted this messge in 3 other forums, i hope i get a better response here.
the following code has a button that removes the selected row from the grid. reset index, is what i am going to use so that the first column is always secquential, so all rows after the deleted one moves up one row.
Private Sub cmdDeleteMSFlexGridRows_Click() MSFlexGrid1.RemoveItem (MSFlexGrid1.RowSel) Call resetIndex End Sub Private Sub resetIndex() vIndex = 0 Do While Not msflexgrid1.????? MSFlexGrid1(vIndex + 1, 0) = vIndex + 1 vIndex = vIndex + 1 Next Row Loop End Sub
i dont know what to use at the ???? to say something similar to End Of File.
any ideas to what to put there for this to work?