in the ItemDataBound event handler, tryvoid OnItemDataBoundcm(object sender, DataGridItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.EditItem)
{ foreach(TableCell c in e.Item.Cells)
{
//find the controls, change their style
}
}
}
{
if (e.Item.ItemType == ListItemType.EditItem)
{ foreach(TableCell c in e.Item.Cells)
{
//find the controls, change their style
}
}
}
拖大一些可解决问题