wpf datagrid數(shù)據(jù)綁定 在dataGridview中我用動態(tài)綁定數(shù)據(jù)的方法綁定了數(shù)據(jù),這樣我就不能在dataGridview中添加多行?
在dataGridview中我用動態(tài)綁定數(shù)據(jù)的方法綁定了數(shù)據(jù),這樣我就不能在dataGridview中添加多行?只需添加到綁定數(shù)據(jù)。例如,如果綁定DataTable對象,則向DataTable對象添加
在dataGridview中我用動態(tài)綁定數(shù)據(jù)的方法綁定了數(shù)據(jù),這樣我就不能在dataGridview中添加多行?
只需添加到綁定數(shù)據(jù)。例如,如果綁定DataTable對象,則向DataTable對象添加行;如果綁定list對象,則向list對象添加項;也就是說,如果更改數(shù)據(jù),則可以更改DataGridView
問題的描述不是很詳細。如果您不符合要求,請?zhí)砑釉赽.aspx中填寫信息,單擊提交并寫入數(shù)據(jù)庫,然后跳轉(zhuǎn)到a.aspx,讀入a.aspx并顯示剛剛寫入的信息