getting the row number in a datagrid

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: 2obvious (vadivasbro_at_hotmail.com)
Date: 12/29/04


Date: 28 Dec 2004 20:03:56 -0800

I'm using a CustomValidator within a datagrid control. I'd like to
get the index of the item (i.e. row of the datagrid) when the
validator is fired and use this number in my custom function. Can
this be done?



Relevant Pages

  • list controls and the CustomValidator
    ... I'm using a CustomValidator within a datagrid control. ... validator is fired and use this number in my custom function. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Regex query
    ... what you suggest is that I do a custom validator and then invert the result. ... > For more information about how to use CustomValidator control, ... > the original RegularExpressionValidator control's logic. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Custom validator for a pair of controls
    ... CustomValidator and then custom validator controls which are developed by ... The built-in CustomValidator can work the way ... I thought the custom> validator used a label with a specific id. ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Custom Validator Only Fires OnServerValidate When Data Exists
    ... will fire everytime regardless of what is in the control. ... Derive from CustomValidator and override the EvaluateIsValid method. ... > I have a textbox with a Custom Validator that utilizes the ... > method for that textbox. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Need help programming a custom validator
    ... the OnServerValidate event of your CustomValidator should fire before the ItemInserting event. ... The code I am trying to write needs to check to see if the account ... invalid - which is why I was using a custom validator. ...
    (microsoft.public.dotnet.framework.aspnet)