Dear All,
I'm very new in VB.NET.
I'm now facing a problem on developing unbound datagridview.
My datagridview consist of 2 column - Column A and column B.
MY problem is when user key in new record on column A and pressed "Tab" or "Enter" button, then i would like the program to check for duplicate column A value. if column A value existed, then i want the program to prompt message to inform user the new value of column A already exist , and then the cursor must focus on column A. How can i do that?
And when user key in new record on column A, if column A value not exist, then i want the cursor to focus on column B instead of next record of column A. How can i do that?
Can anyone help me on it?
Thank you very much!
I'm very new in VB.NET.
I'm now facing a problem on developing unbound datagridview.
My datagridview consist of 2 column - Column A and column B.
MY problem is when user key in new record on column A and pressed "Tab" or "Enter" button, then i would like the program to check for duplicate column A value. if column A value existed, then i want the program to prompt message to inform user the new value of column A already exist , and then the cursor must focus on column A. How can i do that?
And when user key in new record on column A, if column A value not exist, then i want the cursor to focus on column B instead of next record of column A. How can i do that?
Can anyone help me on it?
Thank you very much!