1
私は "インベントリシステム"のために作成したプログラムです。また、私はGridControlからデベロッパーツールを作成しています。どのように私はDevExpress社のGRIDCONTROLにこのコードを変換します。.. が画像添付をご参照くださいGridControlどのように私はDevExpressグリッドコントロールへのデータグリッドビューのセルのクリックイベントを変換するのですか
private void dgvinvoicesummary_CellClick(object sender, DataGridViewCellEventArgs e)
{
try
{
int id = e.RowIndex;
DataGridViewRow row = dgvinvoicesummary.Rows[id];
int ddl1 = Convert.ToInt32(row.Cells[2].Value.ToString());
if (dgvinvoicesummary.Columns[e.ColumnIndex].Name == "Update")
{
invoiceSummary Obj = new invoiceSummary
{
CustomerName = row.Cells["customerName"].Value.ToString(),
InvoiceID = Convert.ToInt32(row.Cells["invoiceId"].Value.ToString()),
IssueDate = row.Cells["issue_date"].Value.ToString(),
DueDate = row.Cells["due_date"].Value.ToString(),
Status = row.Cells["Status"].Value.ToString()
};
frmAddinvoice fm = new frmAddinvoice(Obj);
fm.ShowDialog();
this.Close();
GetInvoiceSummaryData();
}
if (dgvinvoicesummary.Columns[e.ColumnIndex].Name == "delete")
{
DeleteInvoiceSummaryRow(ddl1);
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}