ArgumentOutOfRangeException

A

arujgeorge

hi

i am getting an error of ArgumentOutOfRangeException after deleting
record from the data grid. the code i written is


If GridRepair.VisibleRowCount > 0 Then
deleteConfirm = MsgBox("Do you want to delete the
selected Record", MsgBoxStyle.DefaultButton2 Or MsgBoxStyle.YesNo,
MESALS)
If deleteConfirm = MsgBoxResult.Yes Then
Dim TransferID As Integer =
GridRepair.CurrentRowIndex
GridRepair.DataSource = Nothing
GridRepair.DataSource =
m_RepairAccessoriesCol.EquipmentsInfo
GridRepair.Refresh()

please help me .
 
J

Joshua Flanagan

Please provide the full details of the exception (not just the type, but
the Message, and the full stack trace). What line of code is throwing
the exception?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top