Click to See Complete Forum and Search --> : Flexgrid. trouble..


rajtofar
September 5th, 2002, 06:40 AM
Hi all,
I'm using Vb .NET for an application which involves entering data in a Flex
Grid, due to the client's comfortablity level.
I have written the code. I've put one flexgrid, and a text box. When ever
user double clicks on any cell, the text box becomes visible and is set to
the coordinates of that current cell and the user enters the data in that
text box which gets written in the current cell right below that text box.
Now the trouble is when the user is entering the data in the textbox, it
(the data, not the textbox) is not visible and it becomes visible directly
in the current cell on pressing enter.
can someone give me an idea as to why this is happening??? I can send the
code if one wants.
Thnks

jhemphill
September 5th, 2002, 12:17 PM
your focus is switching. I imagine the code in your textbox_KeyPress or textbox_TextChange event transfers the input to the grid as it's being typed... try transfering that data when the user leaves the text box, in the LostFocus event.
It should function the same, and be transparent to the user. Hope that helps!

rajtofar
September 6th, 2002, 12:13 AM
Hi
Thnks ... I think that might be the reason. I'll try something there..
:)
rajtofar

REAL USERS HATE REAL PROGRAMMERS.