随笔 - 3  文章 - 0 评论 - 1 trackbacks - 0

Private Sub DataGrid1_ItemDataBound(ByVal sender As Object, _
  ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles DataGrid1.ItemDataBound
    If e.Item.ItemIndex <> -1 Then
      e.Item.Cells(0).Text = e.Item.ItemIndex + 1
    End If
  End Sub
posted on 2006-09-05 13:45 周琨 阅读(...) 评论(...) 编辑 收藏