相关代码 |
|
显示图象 *.aspx *.aspx.cs private void DataGrid1_SelectedIndexChanged(object sender, System.EventArgs e) { ToggleBitmap(DataGrid1.SelectedItem); } //选择改变时则改变图像 private void ToggleBitmap(DataGridItem dgi) { TableCell c = (TableCell)dgi.Controls[0]; c.Text = ""; }