|
-
Oct 17th, 2008, 06:18 AM
#1
Thread Starter
New Member
[RESOLVED] [2008] Setting Selected value of Datagridview Combo box
I'm having an issue with setting the selected value of a combo box within a datagridview. I have an unbound DGV which contains two combo box columns. The user adds a row, selects a value from in both cmb's which then populate the other cells and then saves it to my database. This all works fine (I'm using the EditControlShowing to add a selectedIndex_change handler).
After than, I need to be able to retrieve those records and programmatically set the selected value of the cmb's to match the data record. I've lost track of how many articles and forums I've gone through trying to get this to work. I would really appreciate it if anyone has any ideas on how I can get this resolved.
FYI I'm using VS2008 sp1, .net 3.5 sp1, SQL Express 2005.
On a side note, I love this forum. I've been using it for quite some time now and this if the first time I've not been able to find a solution. Thanks to all those who contribute!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|