- c1Combo1.AddItemTitles("Symbol;Code;Description");
- c1Combo1.AddItem("$;ARS;Argentinean Peso");
- c1Combo1.AddItem("R$;BRL;Brazilian Reais");
- c1Combo1.AddItem("$;CAD;Canadian Dollar");
- c1Combo1.AddItem("kr;DKK;Danish Krone");
- c1Combo1.AddItem((char)8364 + ";EUR;Euro");
- c1Combo1.AddItem((char)163 + ";GBP;Great Britain Pound");
- c1Combo1.AddItem("$;MXN;Mexican Peso");
- c1Combo1.AddItem("kr;NOK;Norwegian Krone");
- c1Combo1.AddItem("z" + (char)322 + ";PLK;Poland Zlotych");
- c1Combo1.AddItem("kr;SEK;Swedish Krone");
- c1Combo1.AddItem("CHF;CHF;Swiss Franc");
- c1Combo1.AddItem("$;USD;US Dollar");
- c1Combo1.DisplayMember = "Code";
- c1Combo1.ValueMember = "Code";
复制代码
以上来自Demo 里面,其中设置ValueMember 这个为Code,现在问题是,如何取到这个的值,我用了
c1fgBM.GetData(row,col)
c1fgBM[row,col]
都只能取到显示在单元格上面的值,而取不到内部的值? |
|