简体   繁体   English

c#windows窗体中的表格app

[英]Table in c# windows form app

I need a table for my Winform app and my question is what is the best control to use for it. 我需要一个用于Winform应用程序的表格,我的问题是用于它的最佳控件是什么。 In my table i need to: 在我的表中,我需要:

  1. add columns once the user adds... 用户添加后添加列...
  2. the values in the table cells oftenly updates and contain String types and double. 表格单元格中的值通常会更新并包含String类型和double。

I serached the web for some kind of tamplates for tables or any other examples of designed controls with no luck, i know java and c++ have many of that kinds. 我在网上搜索某些表格或任何其他设计控件的例子没有运气,我知道java和c ++有很多种类。 If you can recommand me of such sites... 如果你能推荐我这样的网站......

Thanks. 谢谢。

DataGridView should be enough. DataGridView应该足够了。 There's plenty of examples and tutorials, starting with MSDN one through some tips related to the control and finally more complex examples (not necessarily for DGV only) with data binding . 有大量的示例和教程,从MSDN开始,通过一些与控件相关的技巧 ,最后是更复杂的示例(不一定只针对DGV)和数据绑定

DataGridView is best control to bind ur table below link reference this DataGridView是最好的控件来绑定ur表下面的链接引用

link: 链接:

http://www.dotnetperls.com/datagridview-tips http://www.dotnetperls.com/datagridview-tips

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM