Hi! ive got two dataGridViews with two columns each and i have a (csv file) with products and prices that i import to gridView1.
My problem is to select one row with a product and price in gridView1 and press my "add" button and that selected row adds in gridView2.
Im quite new with windows forms and hope anyone can guide or help me, thanks.
string[] lines = File.ReadAllLines("Products.csv"); foreach (string line in lines) { string[] words = line.Split(';'); gridView1.Rows.Add(words); }
My problem is to select one row with a product and price in gridView1 and press my "add" button and that selected row adds in gridView2.
Im quite new with windows forms and hope anyone can guide or help me, thanks.