推荐可用于创建优先级项目的分层列表的 C# 控件?

发布于 2024-09-02 12:14:40 字数 357 浏览 5 评论 0原文

我需要能够在 C# 应用程序中显示和编辑任务的分层列表。它可以是 Windows 窗体应用程序,也可以是 ASP.NET。

基本上,我想要与 Microsoft Project 处理任务的方式类似的行为。

该控件需要:

1) 维护由多个字段组成的项目列表

2) 每个项目可以有多个子项(至少 3 层嵌套)

3) 需要非常容易地更改父项/子项 4)编辑

字段需要非常容易(就像在 Excel 中更改单元格一样快)

5) 通过拖放或剪切和粘贴来重新排序项目需要非常容易

6) 如果我可以轻松地将控件连接到数据库,甚至更好

有人对控件有任何建议供我查看吗?

I need to be able to display and edit a hierarchical list of tasks in a C# app. It can either be a Windows form app, or ASP.NET.

Basically, I want similar behaviour to the way Microsoft Project handles tasks.

The control would need to:

1) Maintain a list of items made up of several fields

2) Each item can have a number of children (at least 3 levels of nesting)

3) It needs to be very easy to change the parents/children of an item

4) It needs to be very easy to edit the fields (as fast as changing cells in Excel)

5) It needs to be very easy to reorder the items by dragging and dropping or cut and paste

6) If I can easily connect the control to a database, even better

Anyone got any recommendations for controls for me to look at?

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

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

发布评论

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

评论(1

青衫负雪 2024-09-09 12:14:40

分层数据结构(树)通过树视图控件进行可视化。 ASP.NET 和 WinForms 中有内置的树视图,但考虑到您正在寻找诸如编辑和拖动等功能,因此您可以使用树视图。下降,您可能会考虑商业产品。商业产品将使添加这些功能的工作比使用内置控件更容易。

我最喜欢的是 Telerik 控件。他们销售 WinForms、ASP.NET(和 Silverlight)版本的树视图。

Telerik 网格 (RadGrid) 还支持行嵌套。如果您的分层数据具有已知且有限的深度,尤其是每个深度级别都有含义,那么使用 RadGrid(或其他供应商的类似产品)的嵌套行也能很好地工作。

Hierarchical data structures (trees) are visualized with treeview controls. There are built-in treeviews in ASP.NET and WinForms but given that you are looking for features such as editing and drag & drop, you might consider a commercial product. Commercial products will make the job of adding these features easier than using built-in controls.

A favourite of mine are the Telerik controls. They sell WinForms, ASP.NET (and Silverlight) versions of treeviews.

Telerik grids (RadGrid) also supports nesting of rows. If your hierarchical data has a known and limited depth and, especially, a meaning to each level of depth, then using the nested rows of a RadGrid (or similar product from another vendor) would work well too.

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