private void gdv_Patient_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
{
if (e.Info.IsRowIndicator && e.RowHandle >= 0)
{
var _Gdv = sender as GridView;

if (_Gdv == null) { return; }

string LevelName = _Gdv.GetRowCellValue(e.RowHandle, "LevelName").ToString();//获取到当前行的数据

e.Info.Appearance.ForeColor =Color.Red;//设置文本颜色。

e.Info.DisplayText = LevelName.Substring(0, 2);

}
}

相关文章:

  • 2022-12-23
  • 2022-02-06
  • 2021-09-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-30
猜你喜欢
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-29
相关资源
相似解决方案