Hello, I am encountering this error on the DataGrodVeiw:

"The following exception occurred in the DataGridView:
System.indexoutofrangeexception: index 0 does not have a value.
at system.windows.form.currencymanager.get_item(Int32 index)
at system.windows.forms.datagridviewdataconnection.geterror(Int32 rowindex)

To replace this default dialog please handle the dataerror event"


Thanks