------------------------- 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);");
}
---------------------------------------------------------------------------------------------------------------------------------------