Problem textbox datagrid and scrolling

F

Frank

Hello,


We have the following problem:

We have a datagrid, and when you click on a field we
position a textbox in front of the field so that the user
can enter data. When there is much data the scrollbar is
automatically activated and the problem we have is which
event can we trap so that we can hide the textbox when the
user scrolls. Because now the textbox is fixt while the
records move over the screen.


thx,



frank
 
A

Alex Yakhnin [MVP]

You can try to always hide a TextBox on its LostFocus
event.

HTH... Alex
 
F

Frank

That we tried already but that event is (strangely enough)
not fired when you click on the scrollbar. We work with
the .net compact framework 2003

frank
 
F

Frank

Hello Alex,

We found your example before we posted to the group, but
the problem we had, was that one has to click twice, and
in your case it is fine because you talk about an adres,
we are working on questionaires and put all the questions
at once in edit mode, to save time, so working on your
example we tried to catch events of the scrollbar, but
seemingly they were consumed by MS, and there we got stuck.

Any suggestions how to adapt your code,


thx very much for your support,


frank
 
A

Alex Feinman [MVP]

Sorry for a late reply - I was on a short vacation. Are you referring to the
fact that in my code sample you have first to select the cell and then click
again to get into the edit mode?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top