473,385 Members | 1,409 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,385 software developers and data experts.

datagrid update

Hi,
I would like to have datagrid update all rows by clicking one button. I
need to know how to cycle through each row and get the value in the 3rd
column. Any help is appreciated.

thnx
everyready
Nov 21 '05 #1
3 1003
Hi,

Dim cmData As CurrencyManager =
CType(Me.BindingContext(DataGrid1.DataSource), CurrencyManager)

For x As Integer = 0 To cmData.Count - 1

Debug.WriteLine(DataGrid1.Item(x, 3).ToString)

Next

Ken

--------------------------------

"Eveready" <Ev******@discussions.microsoft.com> wrote in message
news:AF**********************************@microsof t.com...
Hi,
I would like to have datagrid update all rows by clicking one button. I
need to know how to cycle through each row and get the value in the 3rd
column. Any help is appreciated.

thnx
everyready
Nov 21 '05 #2
Thank you for your help -
could you show me how to do this for a web datagrid, please?

thnx

"Ken Tucker [MVP]" wrote:
Hi,

Dim cmData As CurrencyManager =
CType(Me.BindingContext(DataGrid1.DataSource), CurrencyManager)

For x As Integer = 0 To cmData.Count - 1

Debug.WriteLine(DataGrid1.Item(x, 3).ToString)

Next

Ken

--------------------------------

"Eveready" <Ev******@discussions.microsoft.com> wrote in message
news:AF**********************************@microsof t.com...
Hi,
I would like to have datagrid update all rows by clicking one button. I
need to know how to cycle through each row and get the value in the 3rd
column. Any help is appreciated.

thnx
everyready

Nov 21 '05 #3
Ken,

Specifically, I get a error that the CurrencyManager is not defined, and I
cannot find a way to inherit it for a web form.....

thanks
"Ken Tucker [MVP]" wrote:
Hi,

Dim cmData As CurrencyManager =
CType(Me.BindingContext(DataGrid1.DataSource), CurrencyManager)

For x As Integer = 0 To cmData.Count - 1

Debug.WriteLine(DataGrid1.Item(x, 3).ToString)

Next

Ken

--------------------------------

"Eveready" <Ev******@discussions.microsoft.com> wrote in message
news:AF**********************************@microsof t.com...
Hi,
I would like to have datagrid update all rows by clicking one button. I
need to know how to cycle through each row and get the value in the 3rd
column. Any help is appreciated.

thnx
everyready

Nov 21 '05 #4

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

Similar topics

4
by: Glenn Owens | last post by:
I have a DataGrid web control which I've dynamically populated with template columns to be used for bulk-editting. Generally, all of the columns are textbox and/or dropdownlist child controls. ...
2
by: Manish | last post by:
Hey folks I am having a weird problem in ASP .Net. My page is in C#. I have a datagrid, which populates based on selection in drop down box on ASP page. This datagrid has template textbox colum in...
3
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that...
1
by: Rick | last post by:
Hello all, I hope all is well with you. I am having a seriously difficult time with this problem. Allow me to set up the problem. I have a System.Web.UI.Page with the following controls...
3
by: D. Shane Fowlkes | last post by:
I have a Datagrid which in theory, should allow you to edit and update the records. I've stripped my test page down so that it's only attempting to update one field - "description". Yet when I...
5
by: junglist | last post by:
Hi guys, I've been trying to implement an editable datagrid and i have been succesful up to the point where i can update my datagrid row by row. However what used to happen was that once i updated...
4
by: David Colliver | last post by:
Hi all, I am having a slight problem that hopefully, someone can help me fix. I have a form on a page. Many items on the form have validation controls attached. Also on this form are...
5
by: Tina | last post by:
the Edit, Update, Cancel, and Delete buttons in my datagrid are causing validation elsewhere on the page. I want to specify that these buttons should not cause validation but they have no design...
1
by: Sharon | last post by:
Hello All, Is it possible to update Sql Table through DataGrid. I have a DataGrid which is being populated through a stored procedure, all i wanted to do is to update one field...
9
by: rn5a | last post by:
A Form has a DataGrid which displays records from a SQL Server 2005 DB table. Users can modify the records using this DataGrid for which I am using EditCommandColumn in the DataGrid. This is the...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.