private void barButtonItem_OK_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (this.gridView_Sentence.GetFocusedRow() == null) { return; } sentenceInfo = this.gridView_Sentence.GetFocusedRow() as MySentenceInfo; objectid = sentenceInfo.SENTENCEINFO_ID; }
//对应句子 private void gridControl_OSentence_FocusedViewChanged(object sender, DevExpress.XtraGrid.ViewFocusEventArgs e) { if (e.View == null) { return; } g_OsentenceInfo = this.gridView_OSentence.GetRow(this.gridView_OSentence.FocusedRowHandle) as MySentenceInfo; this.memoEdit_Note.Text = g_OsentenceInfo.SENTENCEINFO_NOTE; this.memoEdit_Name.Text = g_OsentenceInfo.SENTENCEINFO_NAME; }
public bool SaveSentenceInfoCard(MySentenceInfo item) { bool result = true; return(result); }
private void gridControl_Event_FocusedViewChanged(object sender, DevExpress.XtraGrid.ViewFocusEventArgs e) { sentenceInfo = this.gridView_Sentence.GetFocusedRow() as MySentenceInfo; this.memoEdit_SentenceNote.EditValue = sentenceInfo.SENTENCEINFO_NOTE; }