Sunday, March 11, 2012

validators in Datagrid control

Ofcourse, simply use them as you were using them outside of it. All you need to do is to write the validators manually into the template columns of the datagrid. You cant drag and drop them.
Thanks SonuKapoor,I will chk it...
Ok ,Fine..is it possible to use calendar control inside grid control.if knows help mee..

Ajait
Re: SonuKapoor

Actually, it is possible to drag and drop them into a datagrid (in VS). If you make the template columns, then go into HTML view, you can right click on the datagrid and edit the template columns. Then you can drag and drop the controls into that template column.

Re: Ajait

I think you can. Hopefully you are using VS. If you are, just use the drag and drop method I explained above. I havent used the calendar control before, so I cannot say what will happen (maybe you could let us know).

word of warning - any controls' id in a daragrid will change according to which row it is in. If you are using javascript, be careful to remember this otherwise you will get Object Reference not set to an instance of an object errors. If you run into this, let us know.

No comments:

Post a Comment