如何指定 wingrid 功能的默认行为

发布于 2024-12-10 11:12:54 字数 150 浏览 8 评论 0原文

当您将网格放在表单上并执行向导时,有很多地方都可以选择“默认行为”(例如,在“功能”->“更新”->“允许添加行”下)。您在哪里设置这些默认行为?我们倾向于拥有比可更新网格更多的只读网格,因此,如果我可以在整个应用程序的某个地方指定此默认行为,那么就不必记住单独执行此操作。

When you drop a grid on a form and go through the wizard there are a number of places where "Default Behavior" is an option (for example, under Features -> Updating -> Allow Row Adding). Where do you set these default behaviours? We tend to have far more read only grids than updateable ones, so if I could specify this default behaviour somewhere for an entire application it would save having to remember to do it individually.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

ゝ杯具 2024-12-17 11:12:54

覆盖对象上下文中的“默认”值意味着它将默认为层次结构中较高层定义的值(列 -> 带 -> 网格)。如果顶级对象也设置为“默认”,它将解析为 Infragistics 预期的默认行为;这不是用户可定义的。

在AllowAddNew 的特定情况下,“默认”行为取决于上下文。如果网格未附加到数据源,则为“否”,否则为“是”。

A 'Default' value in the context of an override object means that it is going to default to the value defined higher up in the heirarchy (column -> band -> grid). If the top level object is also set to 'Default' it is going to resolve to the default behavior as intended by Infragistics; this is not user definable.

In the specific case of AllowAddNew, the "default" behavior depends on the context. If the grid is not attached to a data source it will be No, otherwise it will be Yes.

往昔成烟 2024-12-17 11:12:54

您可以使用预设来设置默认选项。管理预设时,可以选择将特定预设应用于设计时创建的网格。您可以使用 WinGrid 设计器来访问预设。

You could use Presets for setting up default options. When you manage presets there is an option to have a specific preset applied to grids created at design time. You can use the WinGrid designer to access presets.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文