do
{
if (cl == cmbvattype.Items.Count)
{
cl = cmbvattype.Items.Count - 1;
}
y = y + 60;
string vat = cmbvattype.Items[cl].ToString();
e.Graphics.DrawString(vat, new Font("Times New Roman", 13, FontStyle.Underline), Brushes.Black, 80, y - 30);
for (int r = 0; r < dataGridView1.Rows.Count; r++)
{
if (vat == dataGridView1.Rows[r].Cells[1].Value.ToString())
{
if (rc == dataGridView1.Rows.Count)
{
break;
}
---------------
---
--
--
---
}
while (cl < cmbvattype.Items.Count);
0 comments:
Post a Comment