Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 11th, 2006, 05:43 AM
Authorized User
 
Join Date: Jun 2006
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default Validator at runtime

Hi All

I have a DataGrid that is bound at run-time.

Upon the click of the Add, a new row is added to the top and it has textbox control

The DataGrid is bound.

Now, the user fills out the controls and clicks Save at which point I need
to validate.

So, how can this be done programmatically?

Thanks
monika


 
Old November 13th, 2006, 01:33 AM
Authorized User
 
Join Date: Aug 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

dim txt as textbox
txt = datagrid1.Item(DataGrid1.selectedindex).cells(your cell no).controls(0)
take the text property of txt control and do your validation

all the best






Similar Threads
Thread Thread Starter Forum Replies Last Post
RegularExpression Validator monika.vasvani ASP.NET 1.0 and 1.1 Professional 2 January 8th, 2007 09:58 AM
Validator expression Maxxim ASP.NET 1.0 and 1.1 Professional 1 December 3rd, 2006 07:07 AM
How to use validator in datagrid. dajay ASP.NET 1.0 and 1.1 Basics 0 August 8th, 2005 07:56 AM
validator and LookupDispatcherAction jophy XML 0 September 2nd, 2004 09:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.