RowChanging - stop moving from current row

D

Dan

Hello

There is a way to stop moving from current row in data table RowChanging
event ?
Throwing an exception not work as I want.

Thank you !

Dan
 
M

Miha Markic [MVP C#]

Hi Dan,

You should act within UI consumer to prevent changes.
RowChanging just notifies you that row has changed.
Neither does BindingManagerBase give you an option to prevent movements.
What are you doing anyway?
 
D

Dan

Thank you

I want to do data validation at row level. If something is not ok I want to
block user to move to another row until
entered/modified data is valid.

Dan

Miha Markic said:
Hi Dan,

You should act within UI consumer to prevent changes.
RowChanging just notifies you that row has changed.
Neither does BindingManagerBase give you an option to prevent movements.
What are you doing anyway?
--
Miha Markic [MVP C#] - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com

Dan said:
Hello

There is a way to stop moving from current row in data table RowChanging
event ?
Throwing an exception not work as I want.

Thank you !

Dan
 

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