473,386 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to make a global change to DataGrid?

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 'same' text in the 'third' column. So I'm only replacing it
with new info string.

I know how to display the data to a DataGrid... what I don't know is HOW to
specifically point to all the rows (0 to 6) in column 3 to do the text
replacement.

Any thoughts?

Thanks!

Bruce
Jul 21 '05 #1
2 1481
Cor
Hi Mr B.

As far as I know can you not directly change data in the datagrid.

A datagrid has always a datasource.

Let's say it is a datatable without that you have made any style

Than you can do something as (just typed here watch typos)

\\\
dim dr as datarow
for each dr in mytable.rows
dr(2) = mytextbox.text
next
///

I hope this helps,

Cor
Jul 21 '05 #2
With Deft Fingers, "Cor" <no*@non.com> wrote:
As far as I know can you not directly change data in the datagrid.
A datagrid has always a datasource.
Nutz!
Than you can do something as (just typed here watch typos)


Hmmm.... I'll try it. If not, then I'll try to reload the data and insert my
new string while that is happenening. But in thinking, there must be a way as
you 'can' modify a cell (if you have allowed it to be done). Oh well... I'll
keep on plugging away.

Thanks!

Bruce
Jul 21 '05 #3

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

Similar topics

0
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. ...
19
by: pkilambi | last post by:
I wrote this function which does the following: after readling lines from file.It splits and finds the word occurences through a hash table...for some reason this is quite slow..can some one...
0
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...
6
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...
6
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...
41
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 =...
2
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....
5
by: lanem | last post by:
I want to display some drill-down data with a datagrid look. I can get the exact functionality I want with a treeview, but I don't like the way the treeview looks and formats the data. I want a...
12
by: a | last post by:
def fn(): for i in range(l) global count count= .... how do i declare count to be global if it is an array subsequently i should access or define count as an array error:
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...

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.