private void boDeGridControl_FocusedViewChanged(object sender, DevExpress.XtraGrid.ViewFocusEventArgs e) { //txt_hoten.Text = gv_dssv.GetRowCellValue(gv_dssv.FocusedRowHandle, "HoTen").ToString(); //date_ngaysinh.Text = gv_dssv.GetFocusedRowCellValue("NgaySinh").ToString(); //loadct(gv_bode.GetFocusedRowCellValue("MaBoDe").ToString()); }
private void gridChiTietPhieuNhap_FocusedViewChanged(object sender, DevExpress.XtraGrid.ViewFocusEventArgs e) { try { //lbTenSach.Text = dgvListSach.GetFocusedDataRow()["TENSACH"].ToString(); //lbDonGia.Text = dgvListSach.GetFocusedDataRow()["GIABAN"].ToString(); } catch { } }
private void grdLeft_FocusedViewChanged(object sender, DevExpress.XtraGrid.ViewFocusEventArgs e) { string Bao_TypeId = gridViewLeft.GetDataRow(gridViewLeft.FocusedRowHandle)["Bao_TypeId"].ToString(); string sError = " "; string strSql = "select * from T_gongsi where BaoTypeNo='" + Bao_TypeId + "' "; DataTable dt = SqlHelper.RunQuery(CommandType.Text, strSql, null, out sError); grdQx.DataSource = dt; }
private void gridControlCobros_FocusedViewChanged(object sender, DevExpress.XtraGrid.ViewFocusEventArgs e) { try { } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); } }
private void gridControlSuCo_FocusedViewChanged(object sender, DevExpress.XtraGrid.ViewFocusEventArgs e) { if (e.View.Equals(gridViewSuCo)) { setDataView(); } else { setDataView(true, e.View as DevExpress.XtraGrid.Views.Grid.GridView); } }
//对应词汇 private void gridControl_OVocabulary_FocusedViewChanged(object sender, DevExpress.XtraGrid.ViewFocusEventArgs e) { if (e.View == null) { return; } g_OvocabularyInfo = this.gridView_OVocabulary.GetRow(this.gridView_OVocabulary.FocusedRowHandle) as MyVocabularyInfo; this.memoEdit_Note.Text = g_OvocabularyInfo.VOCABULARYINFO_NOTE; this.memoEdit_Name.Text = g_OvocabularyInfo.VOCABULARYINFO_NAME; }
//对应句子 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; }
private void gridControl_FocusedViewChanged(object sender, DevExpress.XtraGrid.ViewFocusEventArgs e) { GridView view = e.View as GridView; if (view.IsNotNull()) { if (view.Name == "gridViewScreening") { Screening screening = view.GetRow(view.FocusedRowHandle) as Screening; FocusProperProbe(screening); this.InvokeActionMethod("Worksheet", "ScreeningChanged", new { screeningId = screening.Id, SessionId = SessionId }); } } }
//关系数据获取 private void gridControl_RelationDataList_FocusedViewChanged(object sender, DevExpress.XtraGrid.ViewFocusEventArgs e) { if (e.View == null) { return; } //关系数据获取 g_relationData = this.gridView_RelationDataList.GetRow(this.gridView_LVocabulary.FocusedRowHandle) as MyRelationData; this.memoEdit_Data.Text = g_relationData.RELATIONDATA_NOTE; this.memoEdit_DataName.Text = g_relationData.RELATIONDATA_NAME; //获取对应关系树节点,并赋值给info this.memoEdit_Info.Text = g_relationInfo.RELATIONINFO_NOTE; this.memoEdit_InfoName.Text = g_relationInfo.RELATIONINFO_NAME; }
private void gridControl1_FocusedViewChanged(object sender, DevExpress.XtraGrid.ViewFocusEventArgs e) { GridView gv = e.View as GridView; if (gv == null) { return; } if (gridControl1.Views[0] == gv) { if (this.action != "view") { this.btn_AddTwo.Enabled = true; this.btn_AddThree.Enabled = false; } this.drOne = gv.GetDataRow(gv.FocusedRowHandle); } else if (gridControl1.Views[1] == gv) { if (this.action != "view") { this.btn_AddTwo.Enabled = false; this.btn_AddThree.Enabled = true; } this.drTwo = gv.GetDataRow(gv.FocusedRowHandle); } else { if (this.action != "view") { this.btn_AddTwo.Enabled = false; this.btn_AddThree.Enabled = false; } } }
private void grdLeft_FocusedViewChanged(object sender, DevExpress.XtraGrid.ViewFocusEventArgs e) { string sError = " "; string strSql = "SELECT cast(0 AS bit) AS IsQx,* FROM TQx_Menu WHERE State='使用' order by MenuID "; DataTable dt = SqlHelper.RunQuery(CommandType.Text, strSql, null, out sError); string sRoleID = gridViewLeft.GetDataRow(gridViewLeft.FocusedRowHandle)["RoleID"].ToString(); strSql = "SELECT * FROM TQx_RoleQx WHERE RoleID='" + sRoleID + "' "; DataTable dtQx = SqlHelper.RunQuery(CommandType.Text, strSql, null, out sError); for (int i = 0; i < dt.Rows.Count; i++) { try { DataView dv = dtQx.DefaultView; dv.RowFilter = " MenuID='" + dt.Rows[i]["MenuID"].ToString() + "'"; dt.Rows[i]["IsQx"] = CommonInfo.CBoolean(dv.ToTable().Rows[0]["IsQx"].ToString()); } catch { } } grdQx.DataSource = dt; }
private void gridControl_Vocabulary_FocusedViewChanged(object sender, DevExpress.XtraGrid.ViewFocusEventArgs e) { g_vocabularyInfo = this.gridView_Vocabulary.GetFocusedRow() as MyVocabularyInfo; this.memoEdit_VocabularyNote.EditValue = g_vocabularyInfo.VOCABULARYINFO_NOTE; }
private void dgvListado_FocusedViewChanged(object sender, DevExpress.XtraGrid.ViewFocusEventArgs e) { }
private void gdvControlInvoices_FocusedViewChanged(object sender, DevExpress.XtraGrid.ViewFocusEventArgs e) { }
private void gridControl1_FocusedViewChanged(object sender, DevExpress.XtraGrid.ViewFocusEventArgs e) { _row = gridView1.GetFocusedDataRow(); }
private void gcTopicLesson_FocusedViewChanged(object sender, DevExpress.XtraGrid.ViewFocusEventArgs e) { }
private void grid_DanhSachVatLieuCuaHang_FocusedViewChanged(object sender, DevExpress.XtraGrid.ViewFocusEventArgs e) { }
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; }
private void gridGiangViens_FocusedViewChanged(object sender, DevExpress.XtraGrid.ViewFocusEventArgs e) { }