הוספת שורה לליסט

israel4ever

New member
הוספת שורה לליסט

היי אני מנסה להוסיף שורה לListView ואני נתקל בקשיים. זאת השגיאה:
An unhandled exception of type 'System.InvalidCastException' occurred in system.data.dll Additional information: The data value could not be converted for reasons other than sign mismatch or data overflow. For example, the data was corrupted in the data store but the row was still retrievable.​
וזו שורת הקוד:
listView.Items.Insert (0, System.Convert.ToString(oReader.GetInt16(1)));​
כשאני מנסה להוציא מהדטא בייס מידע שהוא לא נחשב כ"מספור אוטומטי" אז אני מצליח. כנראה שההגדרה באקסס של המיספור האוטומטי היא זו שגורמת לשינוי.
 
למעלה