在winforms datagrid中显示分层数据
正在开发 .net 3.5/Winforms 应用程序。 我需要在数据网格中显示带有分层数据的数据网格视图。
例如,主行将有一个展开/折叠图标...当用户单击主行时,它应该展开并在网格中显示子行详细信息。
使用位于 http://devcenter.infragistics.com/Support/KnowledgeBaseArticle 的 Infragistics 示例.Aspx?ArticleID=1665,我现在可以在我的超级网格中看到主/子数据。
现在我的下一个任务是:
1.在具有订单详细信息的子网格中显示可编辑文本框。[注意:我尝试了此操作,但对我不起作用:this.ultraGrid.DisplayLayout.Bands[1].Columns[3].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Edit;]
2.当用户点击提交按钮时,读取这些文本框值并将其推送到数据库。
您能否告诉我这是否可行以及如何进行?
任何示例都会非常有帮助。
谢谢。
Am working on a .net 3.5/Winforms application.
I need to show a datagridview with hierarchical data in the datagrid.
For example, master rows will have an expand/collapse icon...and when the user clicks on a master row, it should expand and show the child row details in the grid.
Using the Infragistics sample example at http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.Aspx?ArticleID=1665, am now able to see Master/Child data in my ultragrid.
Now my next task is to :
1.Show editable textboxes in the child grid having order details.[Note: I tried this but did not work for me: this.ultraGrid.DisplayLayout.Bands[1].Columns[3].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Edit;]
2.When the user hits submit button, read these textbox values and push it to the database.
Could you please let me know if this is possible and how to go about it?
Any sample example will be really helpful.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看这个
.NET (WinForms) 具有折叠/展开功能的网格控件功能
编辑::
对于Infragistics UltraGrid,请参阅
http://smartbear.com/support/viewarticle/14615/
Take a look at this
.NET (WinForms) Grid Control with Collapse/Expand Capabilities
EDIT::
For Infragistics UltraGrid, refer
http://smartbear.com/support/viewarticle/14615/