A
Arek
I need to have a simple table. User and application will add rows to it.
I've used DataGrid but I can't add rows by application. I've got such code:
DataRow row = dataTable.NewRow();
row.BeginEdit();
row.ItemArray.SetValue("0", 0);
row.ItemArray.SetValue("0", 1);
row.ItemArray.SetValue("0", 2);
row.ItemArray.SetValue("0", 3);
row.EndEdit();
dataRow.ImportRow(row);
dataGrid.DataSource = dataTable;
But this have no effect - dataGrid is empty. Is in C# another component
to display tables? How should it be to work properly?
Thanks for help.
I've used DataGrid but I can't add rows by application. I've got such code:
DataRow row = dataTable.NewRow();
row.BeginEdit();
row.ItemArray.SetValue("0", 0);
row.ItemArray.SetValue("0", 1);
row.ItemArray.SetValue("0", 2);
row.ItemArray.SetValue("0", 3);
row.EndEdit();
dataRow.ImportRow(row);
dataGrid.DataSource = dataTable;
But this have no effect - dataGrid is empty. Is in C# another component
to display tables? How should it be to work properly?
Thanks for help.