I am using VS2005 .net ver2.0
I've created a FormView but all of the data columns are defaulted as
textboxs. How can change them to other controls (e.g. checkbox,
dropdownlist, etc)?
Thanks
Anoj - 18 May 2008 09:40 GMT
You can edit the templates to change the type of controls. For
dropdownlist/checkboxlist you will have to bind it programitically and
make the default selection.
for details see below links:
http://geekswithblogs.net/AzamSharp/archive/2006/05/22/79292.aspx
http://blogs.parivedasolutions.com/scott.booth/archive/2006/01/11/229.aspx
/Anoj
> I am using VS2005 .net ver2.0
>
[quoted text clipped - 3 lines]
>
> Thanks
Jialiang Ge [MSFT] - 19 May 2008 07:58 GMT
Hello, we can use ItemTemplate to customize the controls of the fields. The
ASP.NET tutorial "Using the FormView's Templates" provides a demonstration
that can be followed easily.
http://www.asp.net/learn/data-access/tutorial-14-cs.aspx
Let me know if you have any other questions.
Regards,
Jialiang Ge (jialge@online.microsoft.com, remove 'online.')
Microsoft Online Community Support
=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.
This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================