如何在运行时更改datagridview行 [英] how to change the datagridview row at runtime

查看:72
本文介绍了如何在运行时更改datagridview行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨...
我在Windows应用程序中使用datagridview.我在网格中显示了从,到,值的三列.我想知道如何在运行时编辑或删除行.同样,一旦我选择了一个要编辑的值,我就需要知道如何将网格单元更改为文本框....很快指导我

Hi...
Im using datagridview in my windows application. Im showing 3 columns as from,To,Value in grid. I want to know how to edit or delete rows at runtime. Also once i select a value to edit,i need to know how to change grid cell to textbox....guide me soon

推荐答案

引用一些链接,该链接指导您如何在网格中使用文本框,以及在网格中编辑和保存功能.
使用DataGridView插入,更新和删除C#(Windows应用程序)中的控件 [添加,编辑和在DataGridView中删除 [ CodeProject搜索 [
Refer some links, which will guide you how to use text box in grid and also edit and save functionality in grid.
Insert, Update, Delete with DataGridView Control in C# (Windows Application)[^]
Add, Edit, and Delete in DataGridView[^]

Also refer some list of articles on CodeProject Search[^]


根据您的问题,我假设您需要了解如何在DataGridView控件上执行添加,编辑和删除操作.下面的文章将为您提供提示:
通过分页在DataGridView中添加,编辑和删除 [ ^ ]
insert-update-delete-with -datagridview-control-in-c-windows-application [
As per your question, I am assuming that you need to understand how to perform add, edit and delete operations on DataGridView control. Below articles will provide you heads up:
Add, Edit, and Delete in DataGridView with Paging[^]
insert-update-delete-with-datagridview-control-in-c-windows-application[^]


这篇关于如何在运行时更改datagridview行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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