FineUI 官方论坛
标题:
能否关闭grid的某些事件啊,grid是代码生成的
[打印本页]
作者:
szjazz
时间:
2013-3-26 15:10
标题:
能否关闭grid的某些事件啊,grid是代码生成的
用代码生成的Grid控件,使用到一些事件:排序、分页等,但没有用到行点击事件,测试时每次点击行,或双击行等没有定义的事件,均会显示“正在加载”,能否让这些不用的事件不激发呢,影响速度,也让客户不明所以
grid.ID = "Grid-" + FormId;
grid.ShowHeader = false;
grid.AllowPaging = true;
grid.PageSize = 20;
grid.EnableRowNumber = true;
grid.RowNumberWidth = 30;
grid.EnableRowNumberPaging = true;
grid.EnableLargeHeader = true;
grid.ExpandAllRowExpanders = true;
grid.EnableTextSelection = true;
grid.AutoPostBack = true;
grid.PageIndexChange += new EventHandler<FineUI.GridPageEventArgs>(Grid_PageIndexChange);
grid.RowDataBound += new EventHandler<FineUI.GridRowEventArgs>(Grid_RowDataBound);
grid.AllowSorting = true;
grid.SortColumn = "系统单号";
grid.SortDirection = "Desc";
grid.Sort += new EventHandler<FineUI.GridSortEventArgs>(Grid_Sort);
grid.AutoScroll = true;
grid.DataKeyNames = FormSysKeyFieldAlias;
复制代码
欢迎光临 FineUI 官方论坛 (https://fineui.com/BBS/)
Powered by Discuz! X3.4