Hello everybody,
I have a datagridview and one of the columns contains dates.
I want to loop through the data in the column using this for loop.
string StartDate="";
string EndDate="";
string date="";
foreach (DataGridViewRow dgvr in dataGridViewTasksReport.Rows)
{
date = dgvr.Cells["work_date_col"].Value.ToString();
}
But what I want to do is get the smallest date and also get the largest date.
Any idea how to do this?
Thanks guys