Click to change the DataGrid line color

zhaozj2021-02-16  89

------------------------- private void mydataGrid_itemdatabase (object sender, system.web.ui.webcontrols.dataGriditeMeventargs e) {if (E.Item. ItemType == ListItemType.Item || E.Item.itemType ==

ListItemType.alternatingItem) {E.Item.attributes.add ("onclick", "JavaScript: Return CG (this);");

}

---------------------------------------------------------------------------------------------------------------------------------------