i want to give focus to a specific column if data entered in a row is not valid.
for example, there are 3 field, code, location, quantity, code has to be entered, location has to be entered, quantity has to be more than zero.
before i exit the row, if location or quantity is not entered, i want to show the message to user 'please enter location' and after use press ok the focus go to location coloumn of the row
also in case quantity is less than zero, show message to the user 'invalid quantity' and on press of ok, focus go to quantity column of the row.
is there a way to achieve this?
thanks in advance.
Parv
I don't know why you can't find it, then. I looked and it's a property on the UltraWinGrid control. It's definitely in v8.1.
this.ultraGrid1.RowUpdateCancelAction = RowUpdateCancelAction.RetainDataAndActivation;
I'm using 8.1.20081.1000
Not found the property anywhere.
Can you advise?
Thanks,
This is a property on the grid control itself or maybe on the DisplayLayout. If it's not there, then you may be using a old version of the controls before it was added. What version are you using?
hi Mike,
i'm unable to find out this property. I looked in the help etc but not sure how i can set it?
Okay, well... if you read the second sentence of my post and look at the BeforeRowUpdateCancelAction property, you can set it so it doesn't clear changs.