473,378 Members | 1,218 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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.
Mar 12 '08 #1
1 2126
One thing that maybe can help some people is that when I leave with click, the function : GetEditingControlFormattedValue 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
Mar 12 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: dm1608 | last post by:
Hello, I have a DataGridView control in VB.NET 2005 that I would like to iterate thru row by row and parse out the individual columns into variables. Can someone provide me example code or direct...
0
by: ken | last post by:
Hi All, I wanna to change the specific cell background color or text color in DataGridView according to diff cell content (say, if "APPLE" then the cell have red in color, if "ORANGE" then the...
0
by: Mike | last post by:
Hey everyone... I've got three problems with a custom DataGridView column I've built following the "How To: Host Controls in Windows Forms DataGridView Cells" article. The base editing control...
1
by: lbelkova | last post by:
Hello, I've created a custom DataGridViewColumn. Everything work well, except for some reason the column doesn't accept some of the chars: "q", "." and "'". Did anybody have a similar problem?...
3
by: Claes Wedin | last post by:
I'm doing a Component class that inherits from DataGridView. One thing that it does is to add a default column in the grid. I put the code for this in the class and when I drag the control to my...
3
by: =?Utf-8?B?UGV0ZXI=?= | last post by:
I'm trying to add a datagridview control to a Windows Form to display read-only information in visual basic 2005. My understanding is that datareader will be faster for this purpose. I have the...
2
by: DaveL | last post by:
Hello, I have a Custome Control which contains TextBox Button DataGridView design is Textbox , button When a user clicks the button i resize the custom control canvasarea to expose the...
0
by: jchaturv | last post by:
All, I have a customized DataGridView where I have implemented extra functionality and bounded datasource in the same custom DataGridView (Using C# and .NET). Now, I could able to use it...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.