RowChanging - stop moving from current row

  • Thread starter Thread starter Dan
  • Start date Start date
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
 
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?
 
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
 
Back
Top