如何在visual studio上的datagrid中添加行? [英] How do I add rows in datagrid on visual studio?

查看:418
本文介绍了如何在visual studio上的datagrid中添加行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试制作一个可以计算等级的应用程序(由测量员完成的调平程序)。我正在学习使用visual studio 2015.我有一个三个按钮控件和一个网格控件以及三个文本框控件。 datagrid应该从三个文本框接收数值并将它们添加到新行。我不知道如何实现这一目标,并希望得到一些帮助,因为这有助于在我即将开展的项目中快速跟踪水准计算。谢谢



我是什么尝试过:



我通过互联网查看向数据网格添加行但是主要看到了datagridview和sql表格。

I am trying to make an application that can computes levels(levelling procedure as done by surveyors). i am learning to use visual studio 2015. i have a three button controls and a grid control and also three textbox controls. the datagrid is supposed to receive numeric values from the three textboxes and add them to a new row. i do not know how to achieve this and would appreciate some help as this would aid in fast tracking the levelling calculations in my upcoming project.Thanks

What I have tried:

ive looked through the internet on adding rows to a datagrid but have seen mainly those of the datagridview and sql tables.

推荐答案

以下是您在此链接上的答案

c# - 如何以编程方式向datagridview添加新行 - Stack Overflow [ ^ ]
Here is your answer on this link
c# - How to add a new row to datagridview programmatically - Stack Overflow[^]


这篇关于如何在visual studio上的datagrid中添加行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆