使DataGrid字段可编辑 [英] Making DataGrid fields editable

查看:93
本文介绍了使DataGrid字段可编辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI



我目前正面临一个小问题。



我设法添加了一个DataGrid到我的vb.net应用程序。

我能够显示数据。



我遇到的问题是数据域可编辑。



我想知道是否有可能使asp.net datagrid的工作几乎像excel电子表格,因此用户可以使用他们的箭头用于浏览字段(行,列)的键?

HI

I currently am facing a slight issue.

I have managed to add a DataGrid to my vb.net application.
I am able to get the data to show.

The problem i am having is making the datafields editable.

I would like to know is it possible to make an asp.net datagrid work almost like an excel spreadsheet, so the user is able to use their arrow keys to navigate through the fields(rows,columns)?

推荐答案

ya ..可能...转到网格属性并启用编辑模式..并处理编辑事件...
ya..it is possible...go to properties of the grid and enable edit mode..and handle the edit event...




试试这个

Hi,
try this
datagridview1.readonly = false


参考这些



在Gridv中编辑单元格在ASP.NET 中[ ^ ]



在ASP.NET中编辑单个GridView单元格 [ ^ ]
Refer these

Edit Cells in Gridview in ASP.NET [^]

Edit Individual GridView Cells in ASP.NET[^]


这篇关于使DataGrid字段可编辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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