GridView怪问题,望高手进来看看
在做GridView绑定的过程中为了实现单击行,此行变色的时候
发现一个怪现象
就是在单击零行时,该行的颜色没有任何的变化,不知道为什么
下面是我的代码:劳驾高手看看
前台:
asp:GridView ID= "gvLeveling " runat= "server " AutoGenerateColumns= "False "
BorderColor= "#000000 " BorderWidth= "1px " CellPadding= "3 " meta:resourcekey= "gvLevelingEmpty " OnRowCreated= "gvLeveling_RowCreated " OnRowDataBound= "gvLeveling_DataBound ">
<Columns>
<asp:BoundField ItemStyle-HorizontalAlign= "Center " ItemStyle-BorderColor= "#000000 " DataField= " " />
<asp:BoundField ItemStyle-HorizontalAlign= "Center " ItemStyle-BorderColor= "#000000 " DataField= " " />
<asp:BoundField ItemStyle-HorizontalAlign= "Center " ItemStyle-BorderColor= "#000000 " DataField= " " />
<asp:BoundField ItemStyle-HorizontalAlign= "Center " ItemStyle-BorderColor= "#000000 " DataField= "project_name " />
<asp:BoundField ItemStyle-HorizontalAlign= "Center " ItemStyle-BorderColor= "#000000 " DataField= "project_cd " />
<asp:BoundField ItemStyle-HorizontalAlign= "Center " ItemStyle-BorderColor= "#000000 " DataField= "project_importance " />
<asp:BoundField ItemStyle-HorizontalAlign= "Center " ItemStyle-BorderColor= "#000000 " DataField= "pstart_date " />
<asp:BoundField ItemStyle-HorizontalAlign= "Center " ItemStyle-BorderColor= "#000000 " DataField= "pfinish_date " />
<asp:BoundField ItemStyle-HorizontalAlign= "Center " ItemStyle-BorderColor= "#000000 " DataField= "status " />