Datagrid row index errors

G

Guest

Hi

Can anyone point me in the right direction

I am using vb.net 2003 to create a windows form application

I have a datagrid bound to a dataset, clicking between row 0 and row 1,
several times will cause an exception, the error is because the
currentrowindex has changed to 2, with only two rows on the grid where is
this value coming from ?

What I am trying to achieve, is that when a user clicks to another row the
values on the previous row are totaled up, what is the best event to place
this code with, I am currently using the mouse up event, could this be
causing the above problem.

I am not using the CurrentCellChanged event as part of the totaling process
involves modification to cells on the same row.

Thanks
 

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

Top