RegularExpressionValidator in gridview always shows error on first update 2nd update works

Simple gridview works great until I added the regular expression validator now when I edit field it always validates with an error. When I click update again it saves fine. not using sqldatasource but doing everything in code behind. Tried adding validator dynamically at runtime and got exactly same result. kinda new to regular expression validator. Kinda acts like I need to do a databind somewhere but I'm stuck. Appreciate any help.

Featured Post

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Introduction
This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks.
Background
I had to provide a way for user…

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…