比如一下代码:
object taskTech = this.ASPxGridView1.GetRowValues(0, new string[]{"TaskTechID","WorkerName"});//获取某行的特定几列的值
 foreach (object s in (object[])taskTech)
 {
      string s1 = s.ToString();
  }

其中GetRowValues返回的是个object 类型的object[]数组——object[3]
所以要先把(object[])taskTech转回来,然后再逐个转换为string

相关文章:

  • 2022-12-23
  • 2021-07-01
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2022-12-23
猜你喜欢
  • 2021-11-18
  • 2021-11-18
  • 2021-07-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案