in your EditCommand handler, you can change the style for the textbox, for example:
MyDataGrid.EditItemIndex = (int)e.Item.ItemIndex;
BindGrid(); foreach (TableCell tc in MyDataGrid.Items[MyDataGrid.EditItemIndex].Cells)
{
foreach (Control c in tc.Controls) //or use tc.Controls[0]
{
if (c is TextBox)
{
TextBox tb = (TextBox)c;
tb.Columns = 10;
tb.Style["color"] = "red";
}
}
}
MyDataGrid.EditItemIndex = (int)e.Item.ItemIndex;
BindGrid(); foreach (TableCell tc in MyDataGrid.Items[MyDataGrid.EditItemIndex].Cells)
{
foreach (Control c in tc.Controls) //or use tc.Controls[0]
{
if (c is TextBox)
{
TextBox tb = (TextBox)c;
tb.Columns = 10;
tb.Style["color"] = "red";
}
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货