Hi Scott,
If you use a DataTable as datasource, you can mark a row and press the "Delete" key to delete the row. And you can add a new row, usually by entering data in a blank row at the bottom. Add, delete and updates will be flagged in the rows in the DataTable without writing any extra code.
Add and delete is not supported if the datasource is an ArrayList. You can see one way to implement add/delete in this sample:
http://www.syncfusion.com/faq/winforms/search/818.asp
This sample uses the standard .NET DataGrid, and buttons for add and delete. Another way is to implement IBindingList in your collection. My solution is, as i said, to transform Entity to DataRow and back (a collection becomes a DataTable).
I don''t have a sample now, but send me an e-mail at
[email protected], and i''ll send you a sample tomorrow.
Regards
Rune
>Rune,
>
>what exactly you mean by "adding" and "delete" doesn''t work.
>
>which syntax i can''t use?
>
>would it be possible for you to provede a simple sample, how did you do it ?
>
>
>thanks,