VB.Net 2005 Custom Control in DataGridView

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dbrunellemdil
    New Member
    • Jan 2008
    • 7

    VB.Net 2005 Custom Control in DataGridView

    Hi,
    I have a control that is basically an 'enhanced' version of the date time picker. It consist of a masked text box with a date time picker, where we can only see the button to open the calender. When I changed the value of the picker, the text box is affected and vice-versa, it handled date errors like we want it to. The advantage is that it is easier to use for our user (they wanted it so I can't really have anything else). On its own it works just fine but when I tried to put it into a datagridview column (I used some turorial on how to do that with a masked text box and just a calendar too and they seem to work ), it behave really weird. When I leave the cell by clicking elsewhere everything looks fine, but when I enter and leave by using the TAB key it usualy doesn't keep the value. What makes it ever more confusing is that on some occasion, which I couldn't explain, it seems to work while not on other. It seems like some event doesn't fire when I leave via the TAB key but I can't put my finger on it.
    Since most of our user of power-user who would write tons of data while tabbing.. this is a real issue for us.
    I have VS.NET 2005 on Windows XP.
  • dbrunellemdil
    New Member
    • Jan 2008
    • 7

    #2
    One thing that maybe can help some people is that when I leave with click, the function : GetEditingContr olFormattedValu e from Editing Control is called while it is not when I press the TAB key. This seem to be the key is determining the value...
    What i need to find is how to force the code to 'call it' , or rather what other function call it :S

    Comment

    Working...