Monday, August 16, 2010

How to design a datagrid in asp.net?

i would like to add required field validator to a datagrid after the design is finished and i already used bound column not tempelate columnsHow to design a datagrid in asp.net?
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
  • love myspace
  • myspace girl
  • No comments:

    Post a Comment