在Listview中编辑单元格 [英] Editing the cell in Listview

查看:78
本文介绍了在Listview中编辑单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,


我回来了,得到了一个新问题。


我有各种数据要显示在表格中。

我认为列表视图会做。我想编辑某个单元格(列,行)的值

。这个过程是由

先点击单元格然后编辑完成的。


这可能吗?


我搜索了网络,但MS Access还没有。


非常感谢帮助。

Hello,

I am back and got a new question.

I have various data to be displayed in a table.
I think a listview will do. I want to edit the value
of a certain cell (column,row). The process is done by
clicking the cell first then edit.

Is this possible?

I searched the net but there''s nothing yet for MS Access.

Help is greatly appreciated.

推荐答案

我认为首先要解决的是为什么你觉得需要使用ListView来显示数据,而ListView是一个ActiveX控件,而不是简单地使用Access本身的东西,比如表单或ListBox? ActiveX控件的使用充满了版本问题,应该避免,除非绝对没有其他方法可以用于手头的任务。


Linq; 0)>
I think the first thing to address here is why you feel the need to display your data using ListView, which is an ActiveX control, rather than simply using something native to Access, such as a form or a ListBox? The use of ActiveX controls are fraught with version problems and should be avoided unless absolutely nothing else will work for the task at hand.

Linq ;0)>



我认为首先要解决的问题是为什么你觉得需要使用ListView来显示数据,而ListView是一个ActiveX控件,而不是简单地使用Access本身的东西,比如表单或ListBox?
I think the first thing to address here is why you feel the need to display your data using ListView, which is an ActiveX control, rather than simply using something native to Access, such as a form or a ListBox?



感谢您的回复,missinglinq。


我想到了ListView控件,因为它是我用过的最好的控件

可以很好地显示数据列表。


我实际上不确定ListView控件是否最适合我需要的。

我知道还有其他控件可以满足我的需求。我将进一步解释。


我有需要在列表中显示的数据。必须有垂直和

水平滚动条才能保持屏幕大小,无论列表中有多少
数据。然后,我需要编辑显示的数据然后

和那里。我的意思是当我点击列表中的某个单元格时(例如)

会出现一个文本框供用户编辑数据。用户完成编辑时

(例如)焦点已经在其他地方了。


我认为ListBox不能这样做..与ListView相同。

我上次研究过,偶然发现了DataGrid和Flexgrid。

但是当我检查参考文献时,没有。


基于我刚才提到的逻辑,使用的最佳控件是什么?

如果它是DataGrid或FlexGrid,我如何在MS Access 2003中注册它们?

Thanks for your reply, missinglinq.

I thought of ListView control because it is the best control that i have used
that can display well a list of data.

I am not actually sure if the ListView control is best for what I needed.
I know there are other controls that suit my needs. I will explain further.

I have data which needs to be displayed in a list. Must have vertical and
horizontal scrollbars to maintain the size of the screen no matter how many
data are there in the list. Then, I need to edit the displayed data right then
and there. What I mean is when I click a certain cell in the list, (for example)
a textbox appears for the user to edit the data. The user is done editing when
(for example) the focus is somewhere else already.

I think the ListBox cannot do it..same as ListView.
I researched last time and stumbled on DataGrid and Flexgrid.
But when I checked the References, there aren''t any.

Based from the logic I just stated above, what is the best control to be used?
And if it''s DataGrid or FlexGrid, how can I register them in my MS Access 2003?



感谢您的回复,missinglinq。


我想到了ListView控件,因为它是我用过的最好的控件

可以很好地显示数据列表。


我实际上不确定ListView控件是否最适合我需要。

我知道还有其他控件可以满足我的需求。我将进一步解释。


我有需要在列表中显示的数据。必须有垂直和

水平滚动条才能保持屏幕大小,无论列表中有多少
数据。然后,我需要编辑显示的数据然后

和那里。我的意思是当我点击列表中的某个单元格时(例如)

会出现一个文本框供用户编辑数据。用户完成编辑时

(例如)焦点已经在其他地方了。


我认为ListBox不能这样做..与ListView相同。

我上次研究过,偶然发现了DataGrid和Flexgrid。

但是当我检查参考文献时,没有。


基于我刚才提到的逻辑,使用的最佳控件是什么?

如果它是DataGrid或FlexGrid,我如何在MS Access 2003中注册它们?
Thanks for your reply, missinglinq.

I thought of ListView control because it is the best control that i have used
that can display well a list of data.

I am not actually sure if the ListView control is best for what I needed.
I know there are other controls that suit my needs. I will explain further.

I have data which needs to be displayed in a list. Must have vertical and
horizontal scrollbars to maintain the size of the screen no matter how many
data are there in the list. Then, I need to edit the displayed data right then
and there. What I mean is when I click a certain cell in the list, (for example)
a textbox appears for the user to edit the data. The user is done editing when
(for example) the focus is somewhere else already.

I think the ListBox cannot do it..same as ListView.
I researched last time and stumbled on DataGrid and Flexgrid.
But when I checked the References, there aren''t any.

Based from the logic I just stated above, what is the best control to be used?
And if it''s DataGrid or FlexGrid, how can I register them in my MS Access 2003?



我认为你可能在这里过于复杂。数据表视图中的表单不会完全满足您的要求,并且如linq所示,它是Access的原生功能。

I think that you may be over complicating matters here. Wouldn''t a Form in Datasheet View accomplish exactly what you are requesting, and as indicated by linq, it is functionality native to Access.


这篇关于在Listview中编辑单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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