AspdotnetCodes.com
Search
Articles
Books
Resources
Asp.Net News
Downloads
Free Tech Magazines
Asp.Net Web Hosting
Archives
Softwares
Newsletter
Suggest Us
Link to Us
Feeds Subscription
Articles
Questions & Answers
Tips & Tricks
 Drop down list
Posted by Shashi on  1/11/2011 6:49:16 AM Category: Asp.Net 2.0
Add to my favorites
Email to friend
I have two drop downs, one for selecting month, and another for selecting year.
i have filled in drop downs.
how to concatinate month and year values and display in grid view.

ex: Month:Jan---->value of dropdown 1
Year:2011---->value of dropdown 2

in grid i have to display jan-2011

can any one help me?

Post Your Reply Post New Question

 Viewer's Reply
Binding Dropdown List in GridView
Answered By Moderator1 on 1/14/2011 8:48:30 PM
Hi,

To bind a value with the GridView control, you need to bring the value either from any data source or atleast from DataTable. So you concate the drop down values of Month and Year in a Dropdown and add as DataRow inside the DataTable, then bind the DataTable with the GridView control.
 
Post Your Reply If you still have problem, post it again under this reply for better response.

 
Sponsored by
The Beginner's Guide to Joomla
Everything You Know About CSS Is Wrong! - Free 37 Page Preview!
Sexy Web Design - Free 71 Page Preview!