Asp.Net News
Free Tech Magazines
Asp.Net Web Hosting
Suggest Us
Link to Us
Feeds Subscription
Questions & Answers
Tips & Tricks
 how to bind two filed in one column of gridview
Posted by smitashree dash on  2/6/2008 4:33:26 AM Category: Asp.Net 2.0
Add to my favorites
Email to friend
how to bind two filed in one column of gridview

Post Your Reply Post New Question

 Viewer's Reply
Use TemplateField in GridView
Answered By Moderator1 on 2/10/2008 7:30:17 PM
You can use TemplateField in GridView control, put two controls in that column and bind it to any data feild in your database. Place your control sin the ItemTemplate section.

Follow the steps below
1. Drag and drop a GridView
2. on the smart tag, choose Add New Column
3. Choose a field type as Templatefield and click ok.
4. Right click on the GridView, choose Edit Template and choose the TemplateField column.
5. Place your controls in the ItemTemplate section.

Hope this will help you. Thanks
Post Your Reply If you still have problem, post it again under this reply for better response.

Sponsored by
Integrating Silverlight 4 with SharePoint 2010 - Free 42 Page Sample Chapter
Introduction to Software Development
Web Application Security — How to Minimize Prevalent Risk of Attacks