且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

gridview中的coloumn值

更新时间:2023-12-06 14:57:22

嗨朋友们,



您应该在代码中使用此代码然后您可以在gridview中添加列值。



Hi friends,

You should use this code in code behind then you can able to add column value in gridview.

foreach (GridViewRow Itemvalue in GridView1.Rows)
     {
        string getFirstColValue = Itemvalue.Cells[0].Text;
        Itemvalue.Attributes.Add("id", getFirstColvalue );
     }





比你。



than u.