הוספת שורה לDS
שלום.. ניסיתי להוסיף שורה לתוך טבלה מוכנה וקיבלתי את השגיאה הבאה:Object reference not set to an instance of an object. object[] row = new object[3] { Id, txtphone.Text, txtdesc.Text }; ds.Tables["phones"].Rows.Add(row); ds.Tables.Add("phones"); friends.dgphones.DataSource = ds.Tables["phones"];
שלום.. ניסיתי להוסיף שורה לתוך טבלה מוכנה וקיבלתי את השגיאה הבאה:Object reference not set to an instance of an object. object[] row = new object[3] { Id, txtphone.Text, txtdesc.Text }; ds.Tables["phones"].Rows.Add(row); ds.Tables.Add("phones"); friends.dgphones.DataSource = ds.Tables["phones"];