如下:
Ctype(Container.DataItem,DataRowView).CreateChildView("OrderRelation")c#中什么函数的功能与Ctype()的功能相同.请各位前辈赐教

解决方案 »

  1.   

    ((DataRowView)Container.DataItem).CreateChildView("OrderRelation")
      

  2.   

    (DataRowView)Container.DataItem转换类型
      

  3.   

    推荐:
    http://dev.csdn.net/article/9/article/25/25324.shtmhttp://www.harding.edu/USER/fmccown/WWW/vbnet_csharp_comparison.html
      

  4.   

    各位前辈
    在帮忙看看这句怎么变成c#e.Item.Cells(1).Text = Format(System.Convert.ToDateTime(e.Item.Cells(1).Text), "yyyy年M月d日 h点m分s秒")