Пример #1
0
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == dataGridView1.Columns["col_bill_no"].Index)
     {
         BillDetails detail = new BillDetails();
         detail.lbl_bill_no.Text = dataGridView1.Rows[e.RowIndex].Cells["col_bill_no"].Value.ToString();
         detail.Show();
     }
 }
Пример #2
0
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == dataGridView1.Columns["col_reprint"].Index && e.RowIndex >= 0)
     {
         printer_checker();
     }
     else if (e.ColumnIndex == dataGridView1.Columns["col_bill_no"].Index && e.RowIndex >= 0)
     {
         BillDetails detail = new BillDetails();
         detail.lbl_bill_no.Text = dataGridView1.CurrentRow.Cells["col_bill_no"].Value.ToString();
         dates = Convert.ToDateTime(dataGridView1.CurrentRow.Cells["col_credit_date"].Value.ToString());
         detail.Show();
     }
 }