Textbox validation in a DataGrid?

Netnoobie

Well-known member
Joined
Feb 6, 2003
Messages
94
Location
Philadelphia
Hello all, I have a question.

How can I perform a validation on a textbox in a DataGrid when that textbox loses focus? I need to check for an entry, and if there is none I will prompt and return focus back to the textbox. Its straight forward validation but Im very unclear as how to do this in ASP.NET. Ive tried several different ways and none work at all.

Thanks for any help anyone can supply.
 
Last edited by a moderator:
Hmm.. Im afraid I may be out of my element here as I have yet to do Database stuff with ASP.NET, but have you tried using a Validator Control? They validate on client side using Javascript.
 
Thanks for replying. Yes, Ive been looking into Validation controls, but I dont see how I can get one to work with a DataGrid (at least so far). If anyone has worked with this or knows a of a great example Id really appreciate it.

Thanks Again.
 
Back
Top