Asp.Net News
Free Tech Magazines
Asp.Net Web Hosting
Suggest Us
Link to Us
Feeds Subscription
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

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 ASP.NET 2.0 Anthology: 101 Essential Tips, Tricks & Hacks - Free 156 Page Preview
No Nonsense XML Web Development With PHP - Free 146 Page Preview!
Many .NET teams are underperforming, is yours?