Hi,
//Create an instance of the NorthWindDataContext NorthWindDataContext db = new NorthWindDataContext(connectstring);
//Select all products in the database where the category name is Beverages var products = from p in db.Products select p
//Bind WinGrid to the resultsthis.WinGrid.DataSource = products;
Peter,
You can look at either the AfterCellUpdate or AfterRowUpdate to handle edits and AfterRowsDeleted to handle deleted rows. You may want to handle the AfterRowUpdate event for insertions as well, since the AfterRowInsert will fire if you use the TemplateAddRow and simply click into it; what you would do in this case is query the DataContext to see if there is already a row in the table with the relevant keys of the row and if not, add it, otherwise update it.
-Matt