图片.Visible=<%# DataBinder.Eval(Container.DataItem,"temp") %>
temp=1显示,temp=0不显示

解决方案 »

  1.   

    谢谢老兄,我是想在dataGrid中显示一列,怎么做,我上在c#的C/S中做的,不是页面上,怎么做,
      

  2.   

    看看这个行不:
    http://msdn.microsoft.com/library/en-us/dnforms/html/winforms12182003.asp?frame=true
      

  3.   

    重写列的风格
    ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.2052/cpref/html/frlrfSystemWindowsFormsDataGridColumnStyleClassTopic.htm
      

  4.   

    DataGrid可以显示大部份控件,甚至显示一个子的DataGrid