改变背景不知道怎办,但是双击打开单据知道怎么做
If (itemType <> ListItemType.Header) And _
(itemType <> ListItemType.Footer) And _
(itemType <> ListItemType.Separator) Then ' Get the IntegerValue cell from the grid's column collection.
intCell = CType(e.Item.Controls(2), TableCell)
' Add attributes to the cell.
intCell.Attributes.Add("id", "intCell" + e.Item.ItemIndex.ToString())
intCell.Attributes.Add("OnClick", "Mouse_Click" + "('" + STDAsset_NO + _
"')") ' Add attributes to the row.
e.Item.Attributes.Add("id", "row" + e.Item.ItemIndex.ToString())
e.Item.Attributes.Add("OnDblClick", _
"Mouse_DblClick" + _
"()")
不过,自定义的函数中好像只能传递一个参数
If (itemType <> ListItemType.Header) And _
(itemType <> ListItemType.Footer) And _
(itemType <> ListItemType.Separator) Then ' Get the IntegerValue cell from the grid's column collection.
intCell = CType(e.Item.Controls(2), TableCell)
' Add attributes to the cell.
intCell.Attributes.Add("id", "intCell" + e.Item.ItemIndex.ToString())
intCell.Attributes.Add("OnClick", "Mouse_Click" + "('" + STDAsset_NO + _
"')") ' Add attributes to the row.
e.Item.Attributes.Add("id", "row" + e.Item.ItemIndex.ToString())
e.Item.Attributes.Add("OnDblClick", _
"Mouse_DblClick" + _
"()")
不过,自定义的函数中好像只能传递一个参数
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货