且构网

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

在asp.net的GridView中创建行

更新时间:2023-11-17 13:44:34

代码.然后收集这些行并通过您的机制上传.

 foreach(GridViewRow行 GridView1.Rows中)
{
  如果(row.RowState = DataControlRowState.Edit)
  {
    // 在此处编写代码
  }
} 



谢谢,
马蒙


hi can any one say me is it possible to upload only the 10 row values from the gridview.
for example if i create 10rows through coding means it should upload only the 10 row values from excel sheet not all the values.

You can find edited row by the bellow code. Then collect those rows and upload by your mechanism.

foreach(GridViewRow row in GridView1.Rows)
{
  if (row.RowState = DataControlRowState.Edit)
  {
    //wirite your code here
  }
}



Thanks,
Mamun