执行如下代码
Dim t As Table = Tables("表A")Dim rn = t.grid.GetCellRange(1, t.cols("第七列").index+1, t.rows.count+t.HeaderRows-1, t.cols("第七列").index+1)Dim cs = t.grid.Styles.Add("emp")cs.imagealign = 5cs.backcolor = color.yellowrn.style = cs