网格前色

2020-09-01 04:40发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)大家好 我正在尝试根据某些条件...

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


大家好

我正在尝试根据某些条件更改网格中行的前景色。我将查询数据加载到网格数据中。现在我遍历网格并想要更改前景色,我遇到了错误

行-无效索引[66000-31]

对于i As Integer = 0到oGrid.Rows.Count-1
  oEdit1.Value = oGrid.DataTable.GetValue(" img",oGrid.GetDataTableRowIndex(i))
  如果oEdit1.Value =" +"然后
 昏暗newColor作为整数= 16777088
  oGrid.CommonSetting.SetRowFontColor(i,newColor)
 万一

 接下来我

还尝试了ogrid .getdatatablerowindex(i)而不是i,但出现了相同的错误

行-无效索引[66000-31]

对于i As Integer = 0到oGrid.Rows.Count-1
  oEdit1.Value = oGrid.DataTable.GetValue(" img",oGrid.GetDataTableRowIndex(i))
  如果oEdit1.Value =" +"然后
 昏暗newColor作为整数= 16777088
  oGrid.CommonSetting.SetRowFontColor(oGrid.GetDataTableRowIndex(i),newColor)
 万一

 接下来我


 请帮助TIA