Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Get "Current" Cell Value from datagrid

$
0
0

Hi folks,

My form has a datagrid that has a numeric column called allocated with a default value of 0.00.

I change the value in the cell from 0 to 100. At this point I press the Down Arrow. 

I am trapping the down arrow keypress using :

private void grdTransactions_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
{
    switch (e.KeyCode)
    {
        case Keys.Down:
// Debugger cell value shows 0.00 but shows as 100 on the grid ???
        break;
    }
 }


IN the debugger, it still says that the cell value is 0. Where can pick up what is actually showing in the cell and not what is stored in the underlying data ?

J


jppnn


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>