Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C# (http://www.go4expert.com/forums/c-sharp/)
-   -   cell click problem using data grid view (http://www.go4expert.com/forums/cell-click-using-data-grid-view-t10288/)

morfix78 29Apr2008 13:41

cell click problem using data grid view
 
hi,
I am using a generic list in a class and I connect this list to a binding source which is connected to a data grid view using the DataSource and DataMember properties of the data grid view. when i add the first object to the list a new row is added to the data grid view. when i click the first row I get an exception: "index -1 does not have a value". if I add another row and click the second row in the data grid view I do not receive any exception.
can someone tell why i receive this error?
thank.


All times are GMT +5.5. The time now is 09:13.