如何使Datagrid的!!!选中行!!!的backcolor改变,而并非是mouseover时的backcolor
如题!
我在CSDN上查过很多问题,都是:
e.Item.Attributes.Add("onmouseover", "currentcolor=this.style.backgroundColor;this.style.backgroundColor='#FFFFC0'")
e.Item.Attributes.Add("onmouseout", "this.style.backgroundColor=currentcolor")
但我的意图并非是这样的,我要的是mouse click的时候backcolor改变