foreach (DataGridViewRow row in молоко_и_молочные_продуктыDataGridView.SelectedRows)
{
d += Convert.ToDouble(row.Cells[1].Value.ToString());
label19.Text = d.ToString();
}
declare @s nvarchar(max) = ''
select @s = @s + Your_String_Column from Your_Table
select @s