Validate textbox generated on clicking edit instead. That is an easier solutoion. just check if textbox1.text.Trim()!=string.EmptyHow to design a datagrid in asp.net?
On Item Databound event of the grid.
check e.item.itemtype = Edititem.. if it is
Find ur Textbox that need validatior controls ll be in e.item.cells collecction.
Then Add Required field validator to this textbox control..
Not try it be4. but it should work
No comments:
Post a Comment