0
에서 CheckedItems를 얻을 :내가 foloowing으로 데이터 소스에 묶여있다 checkedlistbox이 checkedlistbox
chListBox.DataSource = dsContacts.Tables["Contacts"];
chListBox.DisplayMember = "FullName";
chListBox.ValueMember = "ContactNumber";
내가 '형식의 개체를 캐스팅 할 수 없습니다'코드에 따라 checkeditems 수집을 얻을 싶어하지만 System.Data.DataRowView '을 입력하면'System.String '오류가 발생합니다. :
int i = 0;
foreach (string row in chListBox.CheckedItems)
{
phoneNumbers[i] = row.ToString();
i++;
}
무엇이 문제인가?