VFP InputMask property for DataGridView


Author
Message
StrataFrame Team
S
StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
To use a StrataFrame business object with any sort of grid (or any object that needs an IBindingList object), you need to use the BusinessBindingSource.  Drop a BusinessBindingSource on the form, set the BusinessObject property on the BBS, and then set the BBS as the data soruce for the grid.

As for using a mask on the grid, there is not a way to do it by default, so you'll have to create your own custom column type.  MSDN has a sample on how to do this here:

http://msdn2.microsoft.com/en-us/library/ms180996.aspx

Brooks Adair
Brooks Adair
StrataFrame Beginner (8 reputation)StrataFrame Beginner (8 reputation)StrataFrame Beginner (8 reputation)StrataFrame Beginner (8 reputation)StrataFrame Beginner (8 reputation)StrataFrame Beginner (8 reputation)StrataFrame Beginner (8 reputation)StrataFrame Beginner (8 reputation)StrataFrame Beginner (8 reputation)
Group: Forum Members
Posts: 8, Visits: 32
Is there anything like the VFP InputMask property for a DataGridView Cell? I need to be able to set some fields to allow only 2 numeric digits and some that are 3.2. I have found the DefaultCellStyle.Format property but it does not seem to do what I need (unless I am not using it properly)



I have also found the BindingFormat property, but I am not sure how to get a StrataFrame textbox working in a DataGridView.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search