H
Henry Jones
I am using VB.NET VS 2005 and I have a datagridview bound to a table. This
table has rate information on bank loans. The fiels are ProductName,
MinDeposit, Rate, and PreviousRate
On the grid I have maybe 5 rows. I would like to change the MinDeposit
field and then call a routine to chane the ProductName. Here is an example
of the current data
'$5K', 5000, 5.34, 5.00 - This means that the Name is "$5K" a minimum
Deposit of $5,000, the current interest rate is 5.34% and the previous
interest rate is 5.00%
What I would like to do is when I leave each row, if the the MinDeposit
changes to 75000, I run a routine that changes the name to "$75K". The
routine works like it should.
When I leave each row I fire the dataviewgrid1.RowLeave event and I have the
following code:
Dim intDeposit As Single =
dgTiers.Rows(dataGridView1.CurrentRow.Index).Cells("MinDeposit").Value
This value doesn't change to the newly typed value in the cell. Why is
this? I thought if I am leaving the row, the value is still available.
How can I iterate through the grid and process each value?
Thanks for any help
table has rate information on bank loans. The fiels are ProductName,
MinDeposit, Rate, and PreviousRate
On the grid I have maybe 5 rows. I would like to change the MinDeposit
field and then call a routine to chane the ProductName. Here is an example
of the current data
'$5K', 5000, 5.34, 5.00 - This means that the Name is "$5K" a minimum
Deposit of $5,000, the current interest rate is 5.34% and the previous
interest rate is 5.00%
What I would like to do is when I leave each row, if the the MinDeposit
changes to 75000, I run a routine that changes the name to "$75K". The
routine works like it should.
When I leave each row I fire the dataviewgrid1.RowLeave event and I have the
following code:
Dim intDeposit As Single =
dgTiers.Rows(dataGridView1.CurrentRow.Index).Cells("MinDeposit").Value
This value doesn't change to the newly typed value in the cell. Why is
this? I thought if I am leaving the row, the value is still available.
How can I iterate through the grid and process each value?
Thanks for any help