Group: Forum Members
Posts: 2K,
Visits: 6.6K
|
Oh, I'm having fun now....
I have a form with a datagridview. It is a master-child sort a deal, with the master hooked up to a BO and the datagridview hooked up to a child BO via a businessbindingsource. The grid has a combo in it. As long as there is data in the binding source and the grid is on a row with data, all is good.
However, if Click on the new row or use bo.Add() in code or navigate to a master record with no children, then I get a TON of errors, all saying that "DataGridViewComboboxCell value is not valid". I must be doing something wrong here. I've loaded the combo with a data table, set the DisplayMember and ValueMember, all of which works fine, as long as there is data from the DGV datasource in the row. What am I missing?
|