TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Pravinkumar Birajdar
NA
409
274.9k
How to bind ComboBoxColumn of data grid view
Nov 2 2012 8:42 AM
How to bind ComboColumn of data grid view using C#?
I have following code,but it is not displaying any result
private void LoadFromPlaces()
{
if (mobj.GetAllPlaces() == true)
{
DataSet ds = new DataSet();
ds.ReadXml("http://localhost:2246/TicketSys/XmlFiles/Places.xml");
gvDetails.DataSource = ds.Tables["Places"];
BindingSource bs = new BindingSource();
bs.DataSource = ds.Tables["places"];
FromPlace.DataPropertyName = "PlaceID";//FromPlace is the Data Grid View Combo Box
FromPlace.DataSource = bs;
FromPlace.DisplayMember = "PlaceName";
FromPlace.ValueMember = "PlaceID";
}
}
please tell me
Reply
Answers (
1
)
How to create events and validation dynamically
How to make checkedlist box vertical scroll instead of horizontal scroll