private void gridView1_RowClick(object sender, RowClickEventArgs e) { if (e.Clicks >= 1) { var custCode = (string)((GridView)sender).GetRowCellValue(e.RowHandle, "CUST_CODE"); _customer = _customerService.GetCustomerByCustCode(custCode); txtCustCode.Text = _customer.CUST_CODE; txtCustName.Text = _customer.CUST_NAME; txtAddress.Text = _customer.ADDRESS; txtTaxCode.Text = _customer.TAX_CODE; txtTel.Text = _customer.TEL; txtFax.Text = _customer.FAX; txtPartName.Text = _customer.NAME_PART; txtBuyerName.Text = _customer.BUYER; txtCusName.Text = _customer.NAME_CUS; txtPayType.Text = _customer.PAY_TYPE; txtPayTerm.Text = _customer.PAY_TERM; txtCodeTax.Text = _customer.CODE_TAX; txtCurrency.Text = _customer.CURRENCY; txtDelTerm.Text = _customer.DEL_TERM; txtDelPlace.Text = _customer.DEL_PLACE; txtNamePart.Text = _customer.NAME_PART1; txtCustCode.Enabled = false; } }
private void gridViewMechanicals_RowClick(object sender, RowClickEventArgs e) { bool selected = false; object value = gridViewMechanicals.GetRowCellValue(e.RowHandle, gridColumnSelected); if (value != null) bool.TryParse(value.ToString(), out selected); for (int i = 0; i < gridViewMechanicals.RowCount; i++) gridViewMechanicals.SetRowCellValue(i, gridColumnSelected, false); gridViewMechanicals.SetRowCellValue(e.RowHandle, gridColumnSelected, !selected); }
private void gridView1_RowClick(object sender, RowClickEventArgs e) { if (e.Clicks == 1) { ProductGroupId = (string)((GridView)sender).GetRowCellValue(e.RowHandle, "ProductGroupID"); if (!string.IsNullOrEmpty(ProductGroupId)) { EnableButtonUpdateAndDelete(true); } } }
private void gvProjects_RowClick(object sender, RowClickEventArgs e) { if(e.Clicks!=2)return; ProjectBo p = new ProjectBo(); p.Id = (int)gvProjects.GetRowCellValue(e.RowHandle, "Id"); p.Name = (string)gvProjects.GetRowCellValue(e.RowHandle, "Name"); p.StartTime = (string)gvProjects.GetRowCellValue(e.RowHandle, "StartTime"); ProjectCalendar pc = new ProjectCalendar(); pc.project = p; pc.ShowDialog(); }
private void gridView1_RowClick(object sender, RowClickEventArgs e) { if (e.Clicks == 1) { UnitId = (string)((GridView)sender).GetRowCellValue(e.RowHandle, "UnitID"); EnableButtonUpdateAndDelete(true); if (string.IsNullOrEmpty(UnitId)) XtraMessageBox.Show("Vui lòng chọn một Đơn Vị cần sửa!", "THÔNG BÁO", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { EnableButtonUpdateAndDelete(false); } }
private void gridView1_RowClick(object sender, RowClickEventArgs e) { if (e.Clicks == 1) { _stockId = (string)((GridView)sender).GetRowCellValue(e.RowHandle, "StockID"); if (!string.IsNullOrEmpty(_stockId)) { EnableButtonUpdateAndDelete(true); } } else { EnableButtonUpdateAndDelete(false); } }
private void gridView1_RowClick_1(object sender, RowClickEventArgs e) { try { var row = (gridPreview.FocusedView as GridView).GetRow(e.RowHandle); var file = (ImageFile)row; if (!_useRating) { if (file.Attributes.Equals(FileAttributes.ReadOnly | FileAttributes.Archive)) file.Attributes = FileAttributes.Archive; else if (file.Attributes.Equals(FileAttributes.ReadOnly)) file.Attributes = FileAttributes.Archive; else if (file.Attributes.Equals(FileAttributes.Archive)) file.Attributes = FileAttributes.ReadOnly; }else if (_useRating) { file.Rating = file.Rating.Contains("*") ? "" : "*****"; } gridPreview.RefreshDataSource(); } catch (Exception) { } }
private void gridViewDetail_RowClick(object sender, RowClickEventArgs e) { DataRow r = gridViewDetail.GetDataRow(e.RowHandle); if (e.Button == MouseButtons.Left) { if (IsAdd != null && e.Clicks == 2) { gridViewDetail.OptionsBehavior.Editable = true; gridViewDetail.ShowEditor(); } } else { if (r != null && e.RowHandle >= 0) { InitRowMenu(e.RowHandle, r); popupMenu1.ShowPopup(barManager1, MousePosition); } } }
private void grid_RowClickEvents(object sender, RowClickEventArgs e) { gridrowClicked = true; }
private void carGridView_RowClick(object sender, RowClickEventArgs e) { ShowDetail(e.RowHandle); }
private void gridItemChoiceView_RowClick(object sender, RowClickEventArgs e) { DataRow dr = gridItemChoiceView.GetFocusedDataRow(); if (!Convert.ToBoolean(dr["HasManufacturer"])) { XtraMessageBox.Show( "There is no manufacturer set up to supply this Item. please add a manufacturer and try again.", "Manufacturer Not Set", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } bool b = (dr["IsSelected"] != DBNull.Value) ? Convert.ToBoolean(dr["IsSelected"]) : false; dr["IsSelected"] = !b; OnItemCheckedChanged(new object(), new EventArgs()); }
private void gridViewBudget_RowClick(object sender, RowClickEventArgs e) { if (e.Button == MouseButtons.Left && e.Clicks == 2) { DataRow row = gridViewBudget.GetDataRow(e.RowHandle); if (row == null) return; var frm = new FrmKeHoachBudget(HelpNumber.ParseInt64(row[KE_HOACH_BUDGET.KHBG_ID]), null, null); frm.buttonExpand.Visible = false; HelpProtocolForm.ShowModalDialog(this, frm); } }
private void OnOutstandingOrdersRowClicked(object sender, RowClickEventArgs e) { gridViewOrder.OptionsSelection.EnableAppearanceFocusedRow = true; _orderID = Convert.ToInt32(gridViewOrder.GetFocusedDataRow()["ID"].ToString()); ApprovalOrder.LoadByPrimaryKey(_orderID); gridOrderDetailForFacility.DataSource = null; tabFacility.Text = String.Format("{0} History", ApprovalOrder.GetRequestedBy()); uxApproval.LoadOrder(_orderID, BLL.Settings.IsCenter); _isFirstTimeLoad = true; tabControlOrderDetail.SelectedTabPage = tabGeneral; tabControlOrderDetail_SelectedPageChanged(null, null); }
public override void Delete() { object cellValue; if (!(MyRule.Get(MyLogin.RoleId, "bbiMachine") != "OK")) { if (MyRule.AllowDelete) { if (ClsOption.System2.IsQuestion) { if (XtraMessageBox.Show("Bạn có muốn xóa không?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) { return; } } base.SetWaitDialogCaption("Đang xóa..."); string str = ""; bool flag = false; AdvBandedGridView advBandedGridView = this.gbList; int[] selectedRows = advBandedGridView.GetSelectedRows(); DIC_MACHINE dICMACHINE = new DIC_MACHINE(); for (int i = (int)selectedRows.Length; i > 0; i--) { flag = true; cellValue = base.GetCellValue(selectedRows[i - 1], "MachineCode"); if (cellValue != null) { // SYS_LOG.Insert("Danh Sách Thiết Bị", "Xoá", cellValue.ToString()); dICMACHINE.Get(cellValue.ToString()); str = dICMACHINE.Delete(cellValue.ToString()); if (str == "OK") { advBandedGridView.DeleteRow(selectedRows[i - 1]); this.RaiseDeletedEventHander(dICMACHINE); } else if (str != "OK") { MessageBox.Show(string.Concat("Thông tin không được xóa\n", str), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Hand); } } } this.DoHide(); if (!flag) { if (advBandedGridView.DataSource != null) { RowClickEventArgs rowClickEventArg = new RowClickEventArgs((advBandedGridView == null ? -1 : advBandedGridView.FocusedRowHandle), (advBandedGridView.FocusedColumn == null ? -1 : advBandedGridView.FocusedColumn.ColumnHandle), (advBandedGridView.FocusedColumn == null ? "" : advBandedGridView.FocusedColumn.FieldName)); this.m_RowClickEventArgs = rowClickEventArg; cellValue = null; cellValue = base.GetCellValue(rowClickEventArg.RowIndex, "MachineCode"); if (cellValue != null) { // SYS_LOG.Insert("Danh Mục Ca Làm Việc", "Xoá", cellValue.ToString()); base.SetWaitDialogCaption("Đang xóa..."); dICMACHINE.Get(cellValue.ToString()); str = dICMACHINE.Delete(cellValue.ToString()); if (str == "OK") { advBandedGridView.DeleteRow(rowClickEventArg.RowIndex); this.RaiseDeletedEventHander(dICMACHINE); } else if (str != "OK") { MessageBox.Show(string.Concat("Thông tin không được xóa\n", str), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Hand); } this.DoHide(); } } } } else { MyRule.Notify(); } } }
/// <summary> /// GridView行双击事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gridViewMembers_RowClick(object sender, RowClickEventArgs e) { if (e.Clicks == 2) { // 主键 string memberKey = this.gridViewMembers.GetRowCellDisplayText(e.RowHandle, "Member_ID"); if (string.IsNullOrEmpty(memberKey)) { ShowWarnMsgBox(MessageConst.errMsg_DataError); return; } Form05_MemberInfo f05 = checkFormIsOpened("Form05_MemberInfo") as Form05_MemberInfo; if (f05 != null) { f05.Close(); } f05 = new Form05_MemberInfo(2, memberKey); f05.ShowDialog(); } }
private void gridView9_RowClick(object sender, RowClickEventArgs e) { if (demo) { //MessageBox.Show(gridControl3.DataMember.ToString()); ArrayList rows = new ArrayList(); string camera_id = ""; string use_case_id = ""; Int32[] selectedRowHandles = gridView9.GetSelectedRows(); for (int i = 0; i < selectedRowHandles.Length; i++) { int selectedRowHandle = selectedRowHandles[i]; rows.Add(gridView3.GetDataRow(selectedRowHandle)); DataRow row = rows[i] as DataRow; camera_id = row["ID"].ToString(); DbConnection dbCon = new DbConnection(); string connetionString = dbCon.getConnection(); MySqlConnection cnn = new MySqlConnection(connetionString); MySqlDataReader row1; MySqlCommand cmd = new MySqlCommand(); cnn.Open(); string query_to_get_counts = "SELECT usecase_id FROM dashboard.all_tbls_id_view WHERE camera_config_id = " + camera_id + ";"; cmd = new MySqlCommand(query_to_get_counts, cnn); row1 = cmd.ExecuteReader(); while (row1.Read()) { use_case_id = row1["usecase_id"].ToString(); } video_path = sd.get_video_path(use_case_id); break; //MessageBox.Show(use_case_id); } startThread_video_path(video_path); } else { ArrayList rows = new ArrayList(); string ip = "", port = "", user = "", pwd = ""; Int32[] selectedRowHandles = gridView3.GetSelectedRows(); for (int i = 0; i < selectedRowHandles.Length; i++) { int selectedRowHandle = selectedRowHandles[i]; rows.Add(gridView3.GetDataRow(selectedRowHandle)); DataRow row = rows[i] as DataRow; ip = row[2].ToString(); user = row[3].ToString(); pwd = row[4].ToString(); port = row[5].ToString(); //MessageBox.Show(ip + ":" + port + ":"+user+":"+pwd); //load_ratios(); } try { startThread(ip, user, pwd, port); } catch (Exception ex) { Console.WriteLine(ex.ToString()); } } }
private void dgv_Main_RowClick(object sender, RowClickEventArgs e) { SelectedRow(); }
private void gridView1_RowClick(object sender, RowClickEventArgs e) { int id_cliente = int.Parse(gvlistadoclientes.GetRowCellValue(gvlistadoclientes.FocusedRowHandle, "id_cliente").ToString()); validarBloqueoCliente.Fill(dbSoftwareGTDataSet.ValidarBloqueoCliente, id_cliente); string empresa_bloqueo = (from a in dbSoftwareGTDataSet.ValidarBloqueoCliente select a.codigo_empresa).SingleOrDefault(); if (empresa_bloqueo == "F1") { MessageBox.Show("El cliente seleccionado se encuentra bloqueado en la empresa Pecul, se sugiere pueda contactar con dicha empresa para obtener más información."); if (ventaForm != null) { ventaForm.tbidcliente.Text = gvlistadoclientes.GetRowCellValue(gvlistadoclientes.FocusedRowHandle, "id_cliente").ToString(); ventaForm.tbnombrecliente.Text = gvlistadoclientes.GetRowCellValue(gvlistadoclientes.FocusedRowHandle, "nombre_cliente").ToString(); ventaForm.tbnit.Text = gvlistadoclientes.GetRowCellValue(gvlistadoclientes.FocusedRowHandle, "nit").ToString(); ventaForm.tbdireccion.Text = gvlistadoclientes.GetRowCellValue(gvlistadoclientes.FocusedRowHandle, "direccion").ToString(); ventaForm.tbidcliente.Enabled = false; ventaForm.tbnombrecliente.Enabled = false; ventaForm.tbnit.Enabled = false; ventaForm.tbdireccion.Enabled = false; } if (Proformas != null) { Proformas.tbidcliente.Text = gvlistadoclientes.GetRowCellValue(gvlistadoclientes.FocusedRowHandle, "id_cliente").ToString(); Proformas.tbcliente.Text = gvlistadoclientes.GetRowCellValue(gvlistadoclientes.FocusedRowHandle, "nombre_cliente").ToString(); Proformas.tbnitcliente.Text = gvlistadoclientes.GetRowCellValue(gvlistadoclientes.FocusedRowHandle, "nit").ToString(); Proformas.tbdireccioncliente.Text = gvlistadoclientes.GetRowCellValue(gvlistadoclientes.FocusedRowHandle, "direccion").ToString(); Proformas.tbtelefono.Text = gvlistadoclientes.GetRowCellValue(gvlistadoclientes.FocusedRowHandle, "telefono").ToString(); Proformas.tbidcliente.Enabled = false; Proformas.tbcliente.Enabled = false; Proformas.tbnitcliente.Enabled = false; Proformas.tbdireccioncliente.Enabled = false; Proformas.tbtelefono.Enabled = false; } if (vnt != null) { vnt.tbidcliente.Text = gvlistadoclientes.GetRowCellValue(gvlistadoclientes.FocusedRowHandle, "id_cliente").ToString(); vnt.tbcliente.Text = gvlistadoclientes.GetRowCellValue(gvlistadoclientes.FocusedRowHandle, "nombre_cliente").ToString(); vnt.tbnit.Text = gvlistadoclientes.GetRowCellValue(gvlistadoclientes.FocusedRowHandle, "nit").ToString(); vnt.tbdireccion.Text = gvlistadoclientes.GetRowCellValue(gvlistadoclientes.FocusedRowHandle, "direccion").ToString(); vnt.tbtelefono.Text = gvlistadoclientes.GetRowCellValue(gvlistadoclientes.FocusedRowHandle, "telefono").ToString(); vnt.tbidcliente.Enabled = false; vnt.tbcliente.Enabled = false; vnt.tbnit.Enabled = false; vnt.tbdireccion.Enabled = false; vnt.tbtelefono.Enabled = false; } this.Close(); } else if (empresa_bloqueo == "A1") { MessageBox.Show("El cliente seleccionado se encuentra bloqueado en esta empresa. No es posible ligarlo a una venta."); } else if (empresa_bloqueo == null) { if (ventaForm != null) { ventaForm.tbidcliente.Text = gvlistadoclientes.GetRowCellValue(gvlistadoclientes.FocusedRowHandle, "id_cliente").ToString(); ventaForm.tbnombrecliente.Text = gvlistadoclientes.GetRowCellValue(gvlistadoclientes.FocusedRowHandle, "nombre_cliente").ToString(); ventaForm.tbnit.Text = gvlistadoclientes.GetRowCellValue(gvlistadoclientes.FocusedRowHandle, "nit").ToString(); ventaForm.tbdireccion.Text = gvlistadoclientes.GetRowCellValue(gvlistadoclientes.FocusedRowHandle, "direccion").ToString(); ventaForm.tbidcliente.Enabled = false; ventaForm.tbnombrecliente.Enabled = false; ventaForm.tbnit.Enabled = false; ventaForm.tbdireccion.Enabled = false; } if (Proformas != null) { Proformas.tbidcliente.Text = gvlistadoclientes.GetRowCellValue(gvlistadoclientes.FocusedRowHandle, "id_cliente").ToString(); Proformas.tbcliente.Text = gvlistadoclientes.GetRowCellValue(gvlistadoclientes.FocusedRowHandle, "nombre_cliente").ToString(); Proformas.tbnitcliente.Text = gvlistadoclientes.GetRowCellValue(gvlistadoclientes.FocusedRowHandle, "nit").ToString(); Proformas.tbdireccioncliente.Text = gvlistadoclientes.GetRowCellValue(gvlistadoclientes.FocusedRowHandle, "direccion").ToString(); Proformas.tbtelefono.Text = gvlistadoclientes.GetRowCellValue(gvlistadoclientes.FocusedRowHandle, "telefono").ToString(); Proformas.tbidcliente.Enabled = false; Proformas.tbcliente.Enabled = false; Proformas.tbnitcliente.Enabled = false; Proformas.tbdireccioncliente.Enabled = false; Proformas.tbtelefono.Enabled = false; } if (vnt != null) { vnt.tbidcliente.Text = gvlistadoclientes.GetRowCellValue(gvlistadoclientes.FocusedRowHandle, "id_cliente").ToString(); vnt.tbcliente.Text = gvlistadoclientes.GetRowCellValue(gvlistadoclientes.FocusedRowHandle, "nombre_cliente").ToString(); vnt.tbnit.Text = gvlistadoclientes.GetRowCellValue(gvlistadoclientes.FocusedRowHandle, "nit").ToString(); vnt.tbdireccion.Text = gvlistadoclientes.GetRowCellValue(gvlistadoclientes.FocusedRowHandle, "direccion").ToString(); vnt.tbtelefono.Text = gvlistadoclientes.GetRowCellValue(gvlistadoclientes.FocusedRowHandle, "telefono").ToString(); vnt.tbidcliente.Enabled = false; vnt.tbcliente.Enabled = false; vnt.tbnit.Enabled = false; vnt.tbdireccion.Enabled = false; vnt.tbtelefono.Enabled = false; } this.Close(); } }
private static void grid_RowClickEventsCancel(object sender, RowClickEventArgs e) { e.AcceptChanges = true; }
private static void grid_RowClickEventsAccepted(object sender, RowClickEventArgs e) { e.AcceptChanges = false; }
void view_RowClick(object sender, RowClickEventArgs e) { row = e.RowHandle; }
private void gvTempInfo_RowClick(object sender, RowClickEventArgs e) { ViewTemplate(_tempName); }
private void gdvWarehouse_RowClick(object sender, RowClickEventArgs e) { GridView Grid = (GridView)sender; if (Grid.RowCount > 0) { if (e.RowHandle >= 0) { var oBe = (BEWarehouse)gdvWarehouse.GetRow(e.RowHandle); txtCOD_ALMA.Text = oBe.COD_ALMA.ToString(); txtALF_ALMA.Text = oBe.ALF_ALMA; meALF_DESC.Text = oBe.ALF_DESC; lueCOD_SOCI_NEGO_ENCA.EditValue = oBe.COD_SOCI_NEGO_ENCA; } } }
private void gridView1_RowClick(object sender, RowClickEventArgs e) { }
/// <summary> /// When clicked on the row, the item is selected or deselected. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gridItemChoiceView_RowClick(object sender, RowClickEventArgs e) { DataRow dr = gridItemChoiceView.GetFocusedDataRow(); bool b = (dr["IsSelected"] != DBNull.Value) && Convert.ToBoolean(dr["IsSelected"]); dr["IsSelected"] = !b; dr.EndEdit(); OnItemCheckedChanged(new object(), new EventArgs()); }
/// <summary> /// Event click on data row on gridViewAccount /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gridViewAccount_RowClick(object sender, RowClickEventArgs e) { RowID = Convert.ToInt32(gridViewAccount.GetFocusedRowCellValue("ac_id")); MessageBox.Show(RowID.ToString()); }
private void gridViewDetail_RowClick(object sender, RowClickEventArgs e) { if (e.Button == MouseButtons.Left && e.Clicks == 2) { DataRow row = gridViewDetail.GetDataRow(e.RowHandle); if (row == null||row["BM_ID"] is DBNull) return; var frm = new frmBienMuc(HelpNumber.ParseInt64(row[BIEN_MUC.BM_ID]), null); HelpProtocolForm.ShowModalDialog(this, frm); } }
private void gviewLeft_RowClick(object sender, RowClickEventArgs e) { if (e.Clicks == 2 && e.Button == MouseButtons.Left && this.gviewLeft.IsDataRow(e.RowHandle)) { ChannelInfo channel = (ChannelInfo)this.gviewLeft.GetRow(e.RowHandle); this.NavigateToChannel(channel, this.gviewRight); } }
private void gridView_RowClick(object sender, RowClickEventArgs e) { rowSelected = e.RowHandle; }
private void grvRoom_RowClick(object sender, RowClickEventArgs e) { try { this.CodeCurrentRoom = grvRooms.GetRowCellValue(e.RowHandle, "CodeRoom").ToString(); this.IDBookingRoom = this.aListBookingRoom.Where(p => p.CodeRoom == CodeCurrentRoom).Select(p => p.ID).ToList()[0]; this.IDBookingRs = this.aListBookingRoom.Where(p => p.CodeRoom == CodeCurrentRoom).Select(p => p.IDBookingR).ToList()[0]; this.lbCurrentRoom.Text = "Phòng số : " + this.aListBookingRoom.Where(p => p.CodeRoom == CodeCurrentRoom).ToList()[0].RoomSku; LoadServicesInRoom(); } catch (Exception ex) { MessageBox.Show("frmTsk_UseServices.grvRoom_RowClick\n" + ex.Message.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
/// <summary> /// GridView行事件:点击 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gridViewMembers_RowClick(object sender, RowClickEventArgs e) { if (e.Clicks == 2) { OpenMoneyRechargeForm(); #region 本页面只显示一个会员的充值记录,不是多个会员记录,所以不适用下面的方法 // 主键 //string memberKey = this.gridViewMembers.GetRowCellDisplayText(e.RowHandle, "Member_ID.Member_ID"); //if (string.IsNullOrEmpty(memberKey)) //{ // ShowWarnMsgBox(MessageConst.errMsg_DataError); // return; //} //Form61_MoneyRecharge f61 = checkFormIsOpened("Form61_MoneyRecharge") as Form61_MoneyRecharge; //if (f61 != null) //{ // f61.ShowDialog(); //} //else //{ // f61 = new Form61_MoneyRecharge(memberKey); // f61.ShowDialog(); //} #endregion } }
private void GridViewRowClick(object sender, RowClickEventArgs e) { var id = gridView1.GetRowCellValue(e.RowHandle, "Id"); bom_id = Convert.ToInt32(id); }
/// <summary> /// AL REALIZAR UN CLIC SOBRE LA UNA FILA DE LA GRILLA /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gdvArticles_RowClick(object sender, RowClickEventArgs e) { GridView Grid = (GridView)sender; if (Grid.RowCount > 0) { if (Grid.FocusedRowHandle >= 0) { var oBe = (BESVTD_COTI)Grid.GetRow(Grid.FocusedRowHandle); txtNUM_CANT_ADDD.Text = oBe.NUM_CANT.ToString(); } } }
private void grdSaleProductsView_RowClick(object sender, RowClickEventArgs e) { if (grdSaleProductsView.DataRowCount > 0) { var delRow = grdSaleProductsView.GetRow(grdSaleProductsView.FocusedRowHandle) as SaleProductSupport; DelBarcode = delRow.ProductBarcode; txtBarcode.Focus(); } }
private void grid_RowClickDisallowed(object sender, RowClickEventArgs e) { gridrowClickedDisallowed = true; e.AcceptChanges = false; Assert.IsNotNull(e.Row); }
private void gviewRight_RowClick(object sender, RowClickEventArgs e) { if (e.Clicks == 2 && e.Button == MouseButtons.Left && this.gviewRight.IsDataRow(e.RowHandle)) TryExecute(this.AddChannels); }
private void gridViewMissingOrders_RowClick(object sender, RowClickEventArgs e) { gridViewMissingOrders_FocusedRowChanged(null, null); }
private void bandedGridView1_RowClick(object sender, RowClickEventArgs e) { if (e.Clicks == 1) { _Id = ((GridView)sender).GetRowCellValue(e.RowHandle, "Id").ToString(); if (_Id != null) { EnableButtonEditAndDelete(true); } } }
private void gridReceiveView_RowClick(object sender, RowClickEventArgs e) { gridReceiveView_FocusedRowChanged(null, null); }
private void gridView1_RowClick(object sender, RowClickEventArgs e) { GridView grid = sender as GridView; DataRow dr = gridView1.GetDataRow(e.RowHandle); //确定按钮的事件方法 if (grid.FocusedColumn.Name == "gridColumn23") { //增加更新数据 InsertOrUpdate(int.Parse(dr["ID"].ToString ()), DateTime.Parse (dr["attenddate"].ToString()), dr["WearConfirmName"].ToString(), dr["LeaderConfirmName"].ToString(), dr["SectionConfirmName"].ToString(), int.Parse(dr["JobForID"].ToString()), int.Parse(dr["ProjectID"].ToString()), int.Parse(dr["LineID"].ToString ()), int.Parse(dr["TeamID"].ToString ())); } }
void gv_RowClick(object sender, RowClickEventArgs e) { var gv = sender as GridView; var rowHandle = e.RowHandle; var smId = Convert.ToInt32(gv.GetRowCellValue(rowHandle, "SMID")); var layerInfo = gv.Tag as LayerInfo; var dataset = WorkspaceService.Instance.GetDataset(ConfigHelper.GetConfig("StationDatasourceName"), layerInfo.LayerName) as DatasetVector; var rs = dataset.Query(new[] {smId}, CursorType.Static); var centerPt = rs.GetGeometry().InnerPoint; _currentMapCtl.Map.Center = centerPt; _currentMapCtl.Map.Pan(0, 0); _blinkRs = rs; timer_Blink.Enabled = true; timer_Blink.Interval = 500; _blinkCount = 1; timer_Blink.Start(); }
/// <summary> /// AL REALIZAR CLIC SOBRE UNA FILA DE LA GRILLA DE GRUPOS /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gdvGroups_RowClick(object sender, RowClickEventArgs e) { GridView Grid = (GridView)sender; if (Grid.RowCount > 0) { if (e.RowHandle >= 0) { var oBe = (BESVTD_COTI_GROU)Grid.GetRow(e.RowHandle); gdvArticlesGroup.ActiveFilter.Add(gdvArticlesGroup.Columns["COD_COTI_GROU"], new ColumnFilterInfo(String.Format("[COD_COTI_GROU] = {0} ", oBe.COD_COTI_GROU), "")); } } }
private void peopleView_RowClick(Object sender, RowClickEventArgs e) { // This is necessary if the user selects null via the Lookup // when the grid only has one row; no other event will fire. viewModel.Person = (Person)peopleView.GetRow(e.RowHandle); }