C# - Getting minimum value from dataGridView specific column?

Saturday, May 3, 2014

Here is what I am working with: http://ift.tt/1ofb9YC


When there are 3 or more rooms, I need to get the LOWEST value of all rooms from the "Cost" column and take of 50% of that room price. So I need the lowest value in the dataGridView column. I'm not even sure where to start. This is how I enter data into the Grid:



this.dataGridView1.Rows.Add("Room: " + label40.Text, "$" + label38.Text, type, textBox1.Text + "m", textBox2.Text + "m", label10.Text, label9.Text);






http://ift.tt/1iQMSTp