473,624 Members | 2,394 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Global Change to DataGrid

In my app, I get all the info/data that I want from an Access data base. In
one place I've the information displayed on a ListView.

I let a user click on any line and then an 'edit' button. This picks the info
from the line and displays the data in a DataGrid for editing. The
information displayed is 1 to 7 lines.

What I want to do is to change some text in a column ("descriptio n") that is
the same to all the info displayed in the DataGrid. I plan to have a TextBox
where the user makes the change and then clicks an update button. Later they
have to click another button (accept changes) to re-write the updated
information back to the Access data base).

My initial thought to do the update was to reload the data and instead of
using the data base "descriptio n" information, to substitute it with the
revised wording.

But maybe there is an easier way to simply just replace all the info in one
column with the updated text? If so, I'd appreciate some direction here.

LASTLY, in a ListView, how can you get a 'double' click to function? I would
like to allow a user to double click a line to bring up my edit shell (right
now it's a line click to highlight, then an edit button). I've tried:

Private Sub lvProjDisplay_C lick(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles lvProjDisplay.C lick
.... code here...
End Sub

.... but this doesn't work. Anyone?

Thanks in advance!

Bruce
Jul 21 '05 #1
0 1163

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1499
by: Mr. B | last post by:
In my app, I get the info/data that I want from an Access data base (ADO.net). And I display the data in a DataGrid for editing. The information displayed is 1 to 7 lines depending upon the info. What I want to do is to change some text, globally, that is in the 'thrid' column ("description") with new text that is typed in a Textbox by the User. So the user makes the change and then clicks an update button. Each of the lines have the...
0
1127
by: Bill Johnson | last post by:
Server Error in 'DataGrid' Application Compilation Error CS0234: The type or namespace name 'Global' does not exist in the class or namespace 'System.Web.UI.WebControls.DataGrid' (are you missing an assembly reference?) ----------------------------------------
6
3317
by: Alpha | last post by:
I have several textboxes that I need to chang the text when the selection row is changed in a datagrid. I have the following code. This textbox displayes the initial selection but when I click on different rows in the datagrid, the textbox content doesn't change to reflect the change. How can I address this? Also, If the user change the text in the textbox then how do I refesh the display in the datagrid to reflect the changes? ...
6
3674
by: Prince | last post by:
I have a question about the global.asax.cs file. I'm reading info from a database to populate a DataGrid. I read somewhere that the opening of the database should occur in the global.asax.cs file that way every request doesn't open the database again. How is this done? It doesn't seem that the global file can access the DataGrid webcontrol, located on the index.aspx, file. Only the index.aspx.cs file can access this control.
41
10656
by: Miguel Dias Moura | last post by:
Hello, I am working on an ASP.NET / VB page and I created a variable "query": Sub Page_Load(sender As Object, e As System.EventArgs) Dim query as String = String.Empty ... query = String.Format("SELECT * FROM dbo.documents WHERE ") & query End Sub
9
3130
by: Shapper | last post by:
Hello, I am declaring a variable in my aspx.vb code as follows: Public Class catalogue Public productid As String Private Sub Page_Load ... I have an image button where I call the following function:
0
742
by: Mr. B | last post by:
In my app, I get all the info/data that I want from an Access data base. In one place I've the information displayed on a ListView. I let a user click on any line and then an 'edit' button. This picks the info from the line and displays the data in a DataGrid for editing. The information displayed is 1 to 7 lines. What I want to do is to change some text in a column ("description") that is the same to all the info displayed in the...
2
3700
by: Steve | last post by:
I am new to this newsgroup & to .NET in general. I have been playing around with Visual Studio .NET, building and rendering web pages using VB "code behind" files. My problem / question is; How do I ensure that changes made to the "Global.asax.vb" file are immediately reflected in the "Global.asax" file? After I change to the "Global.asax.vb" file, the "Global.asax" file date modified does not change and I do not see the updated values...
1
29338
weaknessforcats
by: weaknessforcats | last post by:
C++: The Case Against Global Variables Summary This article explores the negative ramifications of using global variables. The use of global variables is such a problem that C++ architects have called it polluting the global namespace. This article explores what happens when the global namespace becomes polluted and how to avoid this condition. The opinions expressed in this article are those of the author alone although many have...
0
8240
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8175
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8680
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8625
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8336
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7168
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6111
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5565
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
1791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.