Windows Form DataGridViews

absorc

New member
Joined
Nov 11, 2017
Messages
1
Programming Experience
Beginner
Hi! ive got two dataGridViews with two columns each and i have a (csv file) with products and prices that i import to gridView1.
            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.
 

Latest posts

Back
Top Bottom