Inserting data line by line from datagridview
<p>I am stuck at one point.</p>

<p>I am able to read data from csv file and display it on data gird view. Now, I want to insert those data (which is display in datagridview)  into database.Also, at time of insert data with same primary key should get update. </p>

<p>I tried different way like stored procedure, loop but its not working. </p>

<p>I couldn't able to understand how should I read data line by line from datagridview and insert into database. </p>
