效果如图: 把下面这段代码 COPY 在 DataGridItem_DataBind 事件处理程序 或 其他自己写的方法中都可以 if(DataGrid1.Items.Count <= 1) return; TableCell oldTc = DataGrid1.Items[0].Cells[0]; for(int i=1;i<DataGrid1.Items.Count;i++) } // from CSDN, 原贴: http://dev.csdn.net/article/41/41567.shtm 相关文章: 2021-11-27 2021-10-28 2022-01-15 2022-02-20 2021-05-18 2021-11-24 2021-08-29 2021-06-29