且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在程序中使用datagridview列中的数据进行输入....在C#中

更新时间:2023-11-15 11:26:34

您在某种程度上做错了.通常,它是通过绑定完成的.您将把excell加载为DataSet并将数据绑定到datagrid列.这是DataGrid的一个很好的概述,以及如何使用它: WPF DataGrid实用示例 [ ^ ].
您对以下章节感兴趣:绑定到数据集
You are doing it somewhat incorrectly. Usually it is done through binding. You would load your excell as DataSet and bind your data to datagrid columns. This is a good overview of DataGrid and what to do with it: WPF DataGrid Practical Examples[^].
You are interested in chapter: Binding to a DataSet


是否可以给我一个示例.我对C#不够了解.实际上我使用Matlab创建了一个神经网络.我想使用预先训练的网络,所以我将神经网络部署为.Net程序集.我只需要将excel中的列分配为输入和输出.可能的话出去吗?
Is it possible for you to give me an example..I do not have adequate knowledge in C#. Actually I used Matlab to create a neural network..I wanted to use the pre trained net so I deployed my neural net as a .Net assembly.I just need to assign the columns in excel as input and output..Can you help me out if possible?