CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2002
    Posts
    56

    Unhappy Flexgrid. trouble..

    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

  2. #2
    Join Date
    Jan 2000
    Location
    Kansas City, MO
    Posts
    34

    possibly...

    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!
    Old school... six lines a day and I'm done.

  3. #3
    Join Date
    Apr 2002
    Posts
    56
    Hi
    Thnks ... I think that might be the reason. I'll try something there..

    rajtofar

    REAL USERS HATE REAL PROGRAMMERS.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured