<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      RepositoryItemGridLookUpEdit 使用 ok




      private void Form1_Load(object sender, EventArgs e)
        {
      
            下拉初始化();
            gridControl1.DataSource = DemoData.GetGridData();
        }
      
        private void 下拉初始化()
        {
            GridView view = rep_Grid.View;
            view.Columns.Add(new GridColumn { Caption = "貨號", FieldName = "GoodsNo", Width = 100, VisibleIndex = 0 });
            view.Columns.Add(new GridColumn { Caption = "品名", FieldName = "ProductName", Width = 200, VisibleIndex = 1 });
            view.Columns.Add(new GridColumn { Caption = "客戶", FieldName = "CustomerName", Width = 100, VisibleIndex = 2 });
      
            rep_Grid.PopupFormSize = new Size(450, 300);//下拉窗體尺寸
            rep_Grid.AcceptEditorTextAsNewValue = DevExpress.Utils.DefaultBoolean.True; //重要!!!接受文本框的值作為新值顯示
            rep_Grid.View.RowHeight = 22; //行高
            rep_Grid.ImmediatePopup = true;//輸入值立即彈出下拉窗體
            rep_Grid.SearchMode = GridLookUpSearchMode.AutoSearch;//設置為自動搜索模式,重要!!!
            rep_Grid.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains;//表格篩選列過濾模式
            rep_Grid.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard;//允許錄入資料
            rep_Grid.View.OptionsView.ShowAutoFilterRow = true;//下拉表格顯示過濾行
      
            //綁定下拉窗體數據源
            rep_Grid.DataSource = DemoData.GetGoodsList();
            rep_Grid.EditValueChanged += rep_Grid_EditValueChanged;
            //rep_Grid.ProcessNewValue += OnGrid_ProcessNewValue; //在輸入框錄入新值處理事件
            //                                                    //按回車鍵處理包含關系的新值
            //rep_Grid.KeyDown += On_GridLookUpEdit_KeyDown;
      
            ////下拉表格的記錄行點擊事件
            //rep_Grid.View.RowClick += On_GridLookUpEdit_RowClick;           
      
            rep_Grid.DisplayMember = "GoodsNo";
            rep_Grid.ValueMember = "GoodsNo";
        }
      
        private void rep_Grid_EditValueChanged(object sender, EventArgs e)
        {
            GridLookUpEdit LookupEdit = sender as GridLookUpEdit;
            GoodsItem SelectedDataRow = (GoodsItem)LookupEdit.GetSelectedDataRow();
            gridView1.SetFocusedRowCellValue("ProductName", SelectedDataRow.ProductName);
            gridView1.SetFocusedRowCellValue("Qty", SelectedDataRow.Qty);
        }





      using System.Collections.Generic;
      
      internal class DemoData
      {
          /// <summary>
          /// 表格數據源
          /// </summary>
          /// <returns></returns>
          public static List<GoodsItem> GetGridData()
          {
              var result = new List<GoodsItem>()
                  {
                      new GoodsItem{ GoodsNo="G001", ProductName="鼠標01", Qty=200 },
                      new GoodsItem{ GoodsNo="G=A01", ProductName="鍵盤102", Qty=105 },
                      new GoodsItem{ GoodsNo="Xa-99", ProductName="機箱GameBox", Qty=100 },
                  };
              return result;
          }
      
          /// <summary>
          /// 表格下拉窗體數據源
          /// </summary>
          /// <returns></returns>
          public static List<GoodsItem> GetGoodsList()
          {
              var result = new List<GoodsItem>()
                  {
                      new GoodsItem{ CustomerName="聯想", GoodsNo="G001", ProductName="鼠標01", Qty=200 },
                      new GoodsItem{ CustomerName="ASUS",GoodsNo="A=AC01", ProductName="鍵盤102", Qty=105 },
                      new GoodsItem{ CustomerName="DELL",GoodsNo="D9B9", ProductName="鍵盤102", Qty=100 },
                      new GoodsItem{ CustomerName="ACER",GoodsNo="AXa001", ProductName="機箱GameBox", Qty=100 },
                      new GoodsItem{ CustomerName="ACER",GoodsNo="AX8B70", ProductName="鍵盤A102", Qty=100 },
                      new GoodsItem{ CustomerName="聯想",GoodsNo="GXzC", ProductName="鼠標A01", Qty=100 },
                      new GoodsItem{ CustomerName="ASUS",GoodsNo="AXa99B", ProductName="機箱GameBox", Qty=100 },
                      new GoodsItem{ CustomerName="聯想",GoodsNo="GXa2", ProductName="鼠標B01", Qty=100 },
                  };
              return result;
          }
      
      }
      
      public class GoodsItem
      {
          public string CustomerName { get; set; }
          public string ProductName { get; set; }
          public string GoodsNo { get; set; }
          public int Qty { get; set; }
      
      }





      image

      posted @ 2025-09-17 13:38  網絡來者  閱讀(20)  評論(0)    收藏  舉報
      主站蜘蛛池模板: 免费人成自慰网站| 亚洲精品中文字幕二区| 国产色无码专区在线观看 | 自拍偷自拍亚洲精品熟妇人| 人妻中出无码中字在线| 思热99re视热频这里只精品| 国产成人精品亚洲日本片| 久热这里只有精品在线观看 | 99久久无码私人网站| 老色鬼在线精品视频在线观看| 亚洲国产欧美一区二区好看电影| 国产不卡精品视频男人的天堂| 99久久婷婷国产综合精品青草漫画| 亚洲免费网站观看视频| 大尺度国产一区二区视频| 亚洲精品一区二区18禁| 亚洲综合精品中文字幕| 亚洲国产成熟视频在线多多 | 18禁亚洲一区二区三区| 视频一区二区不中文字幕| 国产精品国产三级国av| 国产精品日韩精品日韩| 日本一区二区不卡精品| 男女啪啪高清无遮挡免费| 久草热在线视频免费播放| 人妻无码| 中国性欧美videofree精品| 高清日韩一区二区三区视频| 91人妻无码成人精品一区91| 亚洲av伦理一区二区| 日本高清视频色欧WWW| 成人性生交大片免费看r链接| 高潮射精日本韩国在线播放| 国产日韩综合av在线| 免费无码毛片一区二三区| 一区二区三区午夜无码视频| 成av人片一区二区久久| 天天拍夜夜添久久精品大| 午夜福利偷拍国语对白| 国产精品福利一区二区久久 | 国产精品中文字幕日韩|