飞得更高

人生茫茫路 何处是我家

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
    protected void GridView_Role_DataBound()
    
{
        
int i = 0;
        
int cellNum = 3;

        
while (i < GridView1.Rows.Count)
        
{

            
if (GridView1.Rows[i].Cells[cellNum].Text == "0")
            
{
                GridView1.Rows[i].Cells[cellNum].Text 
= "系统类型";
            }

            
else if (GridView1.Rows[i].Cells[cellNum].Text == "1")
            
{
                GridView1.Rows[i].Cells[cellNum].Text 
= "用户类型";
            }

            i
++;
        }

    }
posted on 2008-04-09 14:51  kingwang  阅读(271)  评论(0编辑  收藏  举报