This sample demonstrates how to create a custom DataGridViewColumn type with cells that host a MaskedTextBox control.
For information about using the samples, see the following topics:
How to: View and Download Samples
How to: Set Sample Settings
This sample code is provided to illustrate a concept and should not be used in applications or Web sites, as it may not illustrate the safest coding practices. Microsoft assumes no liability for incidental or consequential damages should the sample code be used for purposes other than as intended.
At the command prompt, navigate to the location where you saved the uncompressed sample files.
Navigate to the CS subdirectory under the DataGridViewCustomColumn directory.
Type msbuild to build the sample using the solution (.sln) file provided.
Type cd DataGridViewCustomColumnTest\bin\Debug to navigate to the location of the executable file.
Type DataGridViewCustomColumnTest.exe to run the sample.
In Windows Explorer, navigate to the location where you saved the uncompressed sample files.
Navigate to one of the language-specific subdirectories under the DataGridViewCustomColumn directory.
Double-click the solution (.sln) file to open it in Visual Studio.
In Visual Studio, press F5 to build and run the sample.
Run the provided test application, which displays a DataGridView control containing several MaskedTextBox columns with different masks.
Try entering different values into the different columns.
DataGridViewColumn
DataGridViewCell
IDataGridViewEditingControl
The link will be restored in the next release of the documentation. You can download the .NET Framework 2.0 version of the sample from the 2.0 version of the page.
You waste your time to write such page .. and we waste our time to read it.
Now it is the framework 3.5 and there is allways no link for a sample.