发布:2024/6/28 21:50:26作者:管理员 来源:本站 浏览次数:298
实现代码:
public static void SetFindControlImages(GridControl grid)
{
FindControl fControl = null;
foreach (Control ctrl in grid.Controls)
{
fControl = ctrl as FindControl;
if (fControl != null)
break;
}
if (fControl != null)
{
fControl.FindButton.Image = global::GoodMain.Properties.Resources.Search;
fControl.ClearButton.Image = global::GoodMain.Properties.Resources.Delete_16x16;
fControl.FindButton.Text = "查找";
fControl.ClearButton.Text = "清空";
fControl.CalcButtonsBestFit();
}
}
© Copyright 2014 - 2024 柏港建站平台 ejk5.com. 渝ICP备16000791号-4