Hi,
Sorry but I'm not sure to have understand correctly.
When a cell is clicked (normally receive the focus) is created a focus rectangle.
You can retrive the selected cell using grid.Selection.ActivePosition property
Davide
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In sample 26 of "Grid Samples", a messagebox showing a value will pop up when a cell in column 1 is clicked. How can i show the value in a textbox instead of a message box? Can you provide some sample code for this?
Thx
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, i got a 4X4 grid and a textbox, how do you show the value of a selected cell in the textbox when the cell is clicked? Thanks
Hi,
Sorry but I'm not sure to have understand correctly.
When a cell is clicked (normally receive the focus) is created a focus rectangle.
You can retrive the selected cell using grid.Selection.ActivePosition property
Davide
In sample 26 of "Grid Samples", a messagebox showing a value will pop up when a cell in column 1 is clicked. How can i show the value in a textbox instead of a message box? Can you provide some sample code for this?
Thx
Hi,
You can replace this line:
MessageBox.Show(sender.Grid, sender.GetDisplayText());
with
yourTextBox.Text = sender.GetDisplayText();
Davide