I want to add new row in Datagrid but have error.
ERROR: Rows cannot be programmatically added to the DataGridView's rows collection when the control is data-bound.
row = new string[] { "0", "1", hesab_nomresi,soyad,ad,ataadi,vesiqe,teskilat_kodu,tevellud,nomre,cins };
kartsifarishiGridView.Rows.Add(elaveEtme.row);
AllowUserToAddRow = false;
Datasource: (added from comment of author)
string sqlSorgu = "SELECT" + " customer.id, + " IIf (customer.cins = 'M','Kişi','Qadın') AS Cins " + " FROM customer ORDER BY customer.id ASC";
OleDbDataAdapter dataAdapter = new OleDbDataAdapter(sqlSorgu, Program.esas.bazayaQosul);
DataTable dataTable = new DataTable();
set = new DataSet();
set.Tables.Add(dataTable);
dataAdapter.Fill(dataTable);
kartsifarishiGridView.DataSource = dataTable;