By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,806 Members | 1,337 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,806 IT Pros & Developers. It's quick & easy.

Datagrid row index errors

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies

P: n/a
pdsluk,

Mayby this sampel can do it easier what you try to do.
Can you try it, it is not yet often showed?

http://www.windowsformsdatagridhelp....8-1def3152436f

I hope this helps

Cor
Nov 21 '05 #2

P: n/a
Hi Cor

Thank you for the quick response

"Cor Ligthert [MVP]" wrote:
pdsluk,

Mayby this sampel can do it easier what you try to do.
Can you try it, it is not yet often showed?

http://www.windowsformsdatagridhelp....8-1def3152436f

I hope this helps

Cor

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.