First, I need to say sorry, because I am not good at English, and I am new to C #. I am having a problem with how to get only "Summ" values from my database. And grab it for sorting and sorting with "mm" and "yy", thanks for the help.
Database:

I have a problem with how to get only "Summ" values from my database. And take it to sort and sort by "mm" and "yy", thanks for the help. And this is my design look (I can’t put the images) I just need to do this: D

CODE:
DateTime endtime = new DateTime();
DateTime starttime = new DateTime();
endtime = dateTimePicker2.Value;
starttime = dateTimePicker1.Value;
int mount = (((endtime.Year - starttime.Year) * 12) + (endtime.Month + 1) - starttime.Month);
textBox1.Text = mount.ToString();
string mm,yy;
string inp;
inp = textBox1.Text;
int dt;
dt = dataGridView1.Columns.Count;
int.TryParse(inp, out dt);
dataGridView1.Columns.Clear();
SqlConnection coco = new SqlConnection("Data Source=192.168.9.11;Initial Catalog=db;Persist Security Info=True;User ID=sa;Password=;");
coco.Open();
SqlCommand comm = new SqlCommand("SELECT Summ FROM test_recv Where mm like"+mm+"yy like "+yy+"");
try
{
coco.Open();
SqlDataReader reader = comm.ExecuteReader();
while (reader.Read())
{
string Summ = reader.GetString(0);
}
reader.Close();
coco.Close();
}
catch (Exception)
{
if (coco.State == ConnectionState.Open)
coco.Close();
}
for (int x = 0; x < dt; x++)
{
mm = starttime.AddMonths(x).ToString("MM", seCultureInfo);
yy = starttime.AddMonths(x).ToString("yyyy", seCultureInfo);
dataGridView1.Columns.Add("A", starttime.AddMonths(x).ToString("MM", seCultureInfo) + "/" + starttime.AddMonths(x).ToString("yyyy", seCultureInfo));
dataGridView1.Rows[0].Cells[x].Value = Summ;
}