マスター/ディテール関係でグリッド コントロールをセットアップしていますが、詳細ビューのレコードまたは行にアクセスして、情報の編集または更新を実行する方法を知りたいです。私はこれを試しましたが、機能していません.0をフォームに返します:
void AddPayment_Click(object sender, EventArgs e) {
Paymentfrm payent = new Paymentfrm(Utils.Formtype.add, 0);
payent.PaymentEvent += new EventHandler(RefreshingGrid);
payent.PayentlabelsEvent += new EventHandler(RefresHlabels);
gridView1.ViewCaption = " Lessee Payment ";
CardView card = new CardView(DgPaymentYW);
DgPaymentYW.LevelTree.Nodes.Add("LesseePayments", card);
card.ViewCaption = " Lessee Payments";
GetPayment.TotalPrice = Convert.ToDecimal(card.GetFocusedRowCellValue("TotalPrice"));
payent.ShowDialog();
}