dim str as stringstr=dataset.Tables().Item(0).Rows(0)(0) 绑定第一列
用itembond可以改变Public Sub dgList_ItemDataBound(ByVal sender As System.Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
'--- 判断工作进度 If e.Item.Cells(0).Text = 10 Then If e.Item.Cells(7).Text = “b” Then e.Item.Cells(5).Text = “mmm” End If
DataGrid1.DataBind();
DataGrid1.DataSource=DataSet1.DefaultView;
DataGrid1.DataBind();
不好吗?
DataGrid1.DataSource=DataSet1.DefaultView;
DataGrid1.DataBind();
不好吗?
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
'--- 判断工作进度
If e.Item.Cells(0).Text = 10 Then
If e.Item.Cells(7).Text = “b” Then
e.Item.Cells(5).Text = “mmm”
End If