zoukankan      html  css  js  c++  java
  • C# DEV GridView总结

    从实际工作中总结的

     1         /// <summary>
     2         /// 省份Grid上焦点行改变时
     3         /// </summary>
     4         /// <param name="sender"></param>
     5         /// <param name="e"></param>
     6         private void GVProvince_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e)
     7         {
     8             //焦点行号
     9             int intRow = e.FocusedRowHandle;
    10             if (intRow > -1)
    11             {
    12                 //从焦点行号上,获取具体列的值
    13                 strProID = GVProvince.GetRowCellValue(intRow, "PRO_ID").ToString();
    14                 FrmProvinceHandle.StrProvinceID = strProID;
    15             }
    16             string strCityModel = WebLockConfig.Instance.webProvince.GetCityDSByProvince(strProID);
    17             DataSet ds = Newtonsoft.Json.JsonConvert.DeserializeObject<DataSet>(strCityModel);
    18 
    19             GCCity.DataSource = ds.Tables[0];
    20         }
  • 相关阅读:
    有一种努力叫“凌晨四点”
    编程思想
    小记
    团队精神与集体主义
    变量起名
    软件项目估量方法
    戏说QQ
    压力说
    AngularJS指令基础(一)
    Leetcode 1021. Best Sightseeing Pair
  • 原文地址:https://www.cnblogs.com/YangBinChina/p/2828858.html
Copyright © 2011-2022 走看看