Step 1: Simply design a GUI for inserting data and bind data in grid view using following code.
Step 2: Write the code in cs file for insert data and bind it.
Step 3: I have taken xml file for storing data. but you free to use any database for storing and fetching data.
Step 4: Enter data from GUI.
What ever you enter product name and product cost in input field. It is automatically bind in grid view after 10 sec because I set the time 10000 in timer(you free to set what ever time you want ).
And it is also compare the product cost value of row and change the row color according to product cost.