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
Vikram
1.5k
276
308.8k
Two Combo Box in GridView
Jul 17 2012 12:54 AM
Hi,
I have added two combo box column in grid view using code. Now I want to add change value of second combo box on selected index change event of first combo box.
Following is the code :
private void dgv_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
{
if (e.Control is ComboBox)
{
((ComboBox)e.Control).SelectedIndexChanged += new EventHandler(UC_SelectedIndexChanged);
}
}
void UC_SelectedIndexChanged(object sender, EventArgs e)
{
// Here I get value of first Combo Box. I want to change values of second combo box // according to the value of first combo box.
}
Please tell me how to get DataRow and Second Combo box control in above event.
Any help appreciated.
Regards,
Vikram
Reply
Answers (
2
)
Implementing autozoom for printpreviewcontrol
How to Get the selected Item id in list box using Linq Query