In the CurrentCellChanged event for my datagrid, I have the following:
Dim curRow As Integer = Me.dgrdBids.CurrentCell.RowNumber
Dim pricing As Single = Convert.ToSingle(Me.dgrdBids.Item(curRow, 4))
Me.dgrdBids.Item(curRow, 6) = pricing * .25
When the value is changed in the pricing cell (curRow, 4) the value for the
25%cell (curRow, 6) does not change until you leave and re-enter the pricing
cell where you made the change. I want the change in the 25% cell to happen
as soon as you leave the pricing cell after making the change. I am, once
again, missing something obvious. All help is oh so appreciated!! 3 3760
Do you just need to refresh the grid or invalidate the cell that you
changed? Just a thought.
Chris
"jmb" <jm*@discussions.microsoft.com> wrote in message
news:BC**********************************@microsof t.com... In the CurrentCellChanged event for my datagrid, I have the following:
Dim curRow As Integer = Me.dgrdBids.CurrentCell.RowNumber Dim pricing As Single = Convert.ToSingle(Me.dgrdBids.Item(curRow, 4)) Me.dgrdBids.Item(curRow, 6) = pricing * .25
When the value is changed in the pricing cell (curRow, 4) the value for the 25%cell (curRow, 6) does not change until you leave and re-enter the pricing cell where you made the change. I want the change in the 25% cell to happen as soon as you leave the pricing cell after making the change. I am, once again, missing something obvious. All help is oh so appreciated!!
I need the 25% cell to reflect any changes made to the pricing cell as soon
as the user moves on to another cell. So if the original value in pricing is
100 and the original value in 25% is 25, if the user changes the pricing to
200 and moves to another cell the 25% cell should immediately update to 50.
As it stands right now, the update to the 25% cell does not happen unless you
move to another cell and then move back to the cell in which my made the
change.
It's a Windows form I'm working with and VB.Net in the Visual Studio 2003
environment.
"Chris, Master of All Things Insignifican" wrote: Do you just need to refresh the grid or invalidate the cell that you changed? Just a thought.
Chris
"jmb" <jm*@discussions.microsoft.com> wrote in message news:BC**********************************@microsof t.com... In the CurrentCellChanged event for my datagrid, I have the following:
Dim curRow As Integer = Me.dgrdBids.CurrentCell.RowNumber Dim pricing As Single = Convert.ToSingle(Me.dgrdBids.Item(curRow, 4)) Me.dgrdBids.Item(curRow, 6) = pricing * .25
When the value is changed in the pricing cell (curRow, 4) the value for the 25%cell (curRow, 6) does not change until you leave and re-enter the pricing cell where you made the change. I want the change in the 25% cell to happen as soon as you leave the pricing cell after making the change. I am, once again, missing something obvious. All help is oh so appreciated!!
Did you try to call a Datagrid.update method after changing the value in the
second cell? That's what I ment by "refresh the grid"
You could also try doing the change in the ColumnChanged event
Addhanlder Table.ColumnChanged, addressof .......
Chris
"jmb" <jm*@discussions.microsoft.com> wrote in message
news:47**********************************@microsof t.com... I need the 25% cell to reflect any changes made to the pricing cell as soon as the user moves on to another cell. So if the original value in pricing is 100 and the original value in 25% is 25, if the user changes the pricing to 200 and moves to another cell the 25% cell should immediately update to 50. As it stands right now, the update to the 25% cell does not happen unless you move to another cell and then move back to the cell in which my made the change.
It's a Windows form I'm working with and VB.Net in the Visual Studio 2003 environment.
"Chris, Master of All Things Insignifican" wrote:
Do you just need to refresh the grid or invalidate the cell that you changed? Just a thought.
Chris
"jmb" <jm*@discussions.microsoft.com> wrote in message news:BC**********************************@microsof t.com... > In the CurrentCellChanged event for my datagrid, I have the following: > > Dim curRow As Integer = Me.dgrdBids.CurrentCell.RowNumber > Dim pricing As Single = Convert.ToSingle(Me.dgrdBids.Item(curRow, 4)) > Me.dgrdBids.Item(curRow, 6) = pricing * .25 > > When the value is changed in the pricing cell (curRow, 4) the value for > the > 25%cell (curRow, 6) does not change until you leave and re-enter the > pricing > cell where you made the change. I want the change in the 25% cell to > happen > as soon as you leave the pricing cell after making the change. I am, > once > again, missing something obvious. All help is oh so appreciated!! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: amber |
last post by:
Hello,
How can I trigger an event, when a value (cell) in my datagrid changes?
TIA,
amber
|
by: Lester Moreno |
last post by:
Hello all,
I'm trying to find a way to get a event raised when you change some text on
a DataGrid Cell, I need to be able to search in another table what the user
typed on that cell.
I found...
|
by: Suzanne |
last post by:
Hi all,
I'm having problems with datagrids and the currentcellchanged event.
My problem is this: I have a datagrid on a form, if the user changes
the text in a cell on the datagrid then tries to...
|
by: Djimbo |
last post by:
How can i select another Fullrow from DataGrid in CurrentCellChanged
Handler function?
|
by: J |
last post by:
Hi, all
I am working on a windows application which need to write to a log file if any
user changed the current cell's data. I am using CurrentCellChanged property to
monitor this situation. But I...
|
by: jason via DotNetMonster.com |
last post by:
Hi, all
I am working on a windows application which need to write 'column name',
'new data' to a log file if any user changed the current cell's data. I am
using CurrentCellChanged property to...
|
by: tcdmail |
last post by:
Hello, I'm a kind of newbie in C# and I've a question regarding the
DataGridView control in VS2005. The problem I have is the following:
I have a form with some labels on it, when a user clicks...
|
by: Stephen Plotnick |
last post by:
My program goes into this routine no matter what I do. I would think it
would only go in this routine if the current cell changes.
|
by: Diogo Alves - Software Developer |
last post by:
Greetings Everyone!
Here's my issue,
I have a datagridview, and I'm already using currentCellChanged Event.
What I want to do is... before the currentCellChanged, check if the user any...
|
by: cj |
last post by:
This should be easy. I have a datagrid filled with data and when I
click on a cell I want that data displayed in a text box. How do I do
this? Thanks. P.S. this is a 2005 windows app.
|
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,...
|
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...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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: 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,...
|
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: 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...
| |