private void ViewSearchData_CellContentClick(object sender, DataGridViewCellEventArgs e) { List<Items> Cart; if (e.ColumnIndex==ViewSearchData.Columns["SELECTED"].Index) { } String name = ViewSearchData.Rows[e.RowIndex].Cells["name"].Value.ToString(); int price = (int)(ViewSearchData.Rows[e.RowIndex].Cells["price"].Value); Items item = new Items(name, price); Cart = new List<Items>(); Cart.Add(item); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)