By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,573 Members | 1,927 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,573 IT Pros & Developers. It's quick & easy.

datagrid update

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.