我有一个带有BoundColumns的GridView.前两列是隐藏的,我想使用gridView1.Rows [0] .Cells [0] .Text和gridView1.Rows [0] .Cells [1] .Text分别访问它们,我得到一个空字符串.当列更改为可见时,我可以访问这些值.我已经尝试将列宽更改为零,正如其他一些论坛所建议的那样,但从未修复过这个问题.有没有人对我可能做错了什么有任何指示.
<asp:BoundColumn DataField="pos" HeaderText="Principal Office" />
Run Code Online (Sandbox Code Playgroud)
会以某种方式......
<asp:BoundColumn DataField="postProccess(pos)" HeaderText="Principal Office" />
Run Code Online (Sandbox Code Playgroud)
...所以我可以根据需要修改值?
CRAP:
A field or property with the name 'postProcess(pos)' was not found on the selected data source.
Run Code Online (Sandbox Code Playgroud)
谁知道我怎么能覆盖那个东西?