从实际工作中总结的

 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         }

 

相关文章:

  • 2021-07-18
  • 2021-10-11
  • 2022-03-09
  • 2021-08-24
  • 2022-12-23
  • 2022-12-23
  • 2021-07-20
  • 2022-02-02
猜你喜欢
  • 2021-08-19
  • 2021-09-10
  • 2022-12-23
  • 2021-12-03
  • 2021-04-29
  • 2021-10-24
相关资源
相似解决方案