Hello
I saw I could use this DataRowVersion.Original on a DataRow like this
string prodNo = (string)row["ProdNr",
DataRowVersion.Original].ToString();
//Tony
"Tony Johansson" <
[email protected]> skrev i meddelandet
Hello!
When I delete a row from the DataGridView how can I get this row so I
have a change to remove
it from the textfile.
I use a DataGridView to represent the DataTable with its DataRows
In addition I use
_bindingSource.DataSource = _dataTable;
dataGridViewWareHouse.DataSource = _bindingSource;
//Tony
"Cor Ligthert[MVP]" <
[email protected]> skrev i meddelandet
Tony,
Then first try to find how you do that to a textfile.
Cor
Hello!
I will do one of these alternatives.
1. Add new rows to the Textfile which mean new products.
2. Change existing products for example change the number of items
for a particularly product.
3. Delete a product from the file.
//Tony
"Cor Ligthert[MVP]" <
[email protected]> skrev i meddelandet
Tony,
Is it possible that you stay in the same message, because today you
have made more related message.
Don't be afraid, this will be seen by others too, but then they know
what you are doing,
By the way, what we don't know yet is, are you rewriting the
complete textfile or only the changed rows?
Cor
Hello!
I have a DataGridView that represent a DataTable with some DataRow.
I have also these bindings.
_bindingSource.DataSource = _dataTable;
dataGridViewWareHouse.DataSource = _bindingSource;
When clicking on the Save button I write to a textfile.
Now to my question when I Change,Add or delete rows in the
DataGridView do I ever
have to check the rowState Detached.
//Tony