2010-04-13 4 views
0

나는 윈도우 모바일 5.0 포켓 PC에서 콤보 상자를 채울 시도하지만 난이 오류가 :채우기 combox 5.0

방법은 다음 웹 서비스에 데이터 세트에서

Value does not fall within the expected range.

DataTable을 반환 :

public void loadComboBox(ref ComboBox ComboBoxGen, string DisplayText, string Value,DataTable dt) 
{ 
    ComboBoxGen.DataSource = dt; 
    ComboBoxGen.DisplayMember = DisplayText; 
    ComboBoxGen.ValueMember = Value; 
} 

답변

0
  1. DataTable에는 데이터를 가지고 있습니까?
  2. DataTable은 null입니까?
  3. Value 및 DisplayText에 전달할 값은 무엇입니까?
  4. 매개 변수를 사용하기 전에 매개 변수를 확인하지 않는 이유는 무엇입니까?
  5. 권장되는 표준으로 사용하는 변수에 camelCase를 사용하지 않는 이유는 무엇입니까?
  6. 왜 객체가 아닌 참조의 참조 유형을 전달하고 있습니까?