여기 내 데이터 세트에서 내 데이터 테이블에 행을 추가하는 간단한 코드를했습니다 :Datatable에 Row가 추가되지 않았습니까?
DigiLocalDataSet dataset = new DigiLocalDataSet();
DataRow newClientsRow = dataset.Tables["clients"].NewRow();
newClientsRow ["clientnr"] = "123";
newClientsRow ["name"] = "Pascal";
newClientsRow ["city"] = "London";
dataset.Tables["clients"].Rows.Add(newClientRow);
clientsTableAdapter.Fill(dataset.clients);
this.DataContext = dataset.clients.DefaultView;
하지만 내 데이터 그리드에 삽입 된 행이 표시되지 않는이, 내가 볼 단지 기존 행 '고객'테이블.
무엇이 잘못 되었나요?
ClearBeforeFill이 true로 설정된 경우에만 해당됩니다. – InBetween