CODE :
private void dgVanity_ItemCreated(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) 
{ 
switch(e.Item.ItemType) 
{ 
case (ListItemType.Item) : 
TextBox tt = new TextBox(); 
tt = (((TextBox)(e.Item.FindControl("txtPreferredSpelling")))); 
tt.Attributes.Add("onkeyup","validateFloat(this,10,2)"); 
break; 
} 
}


0 comments:
Post a Comment