﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » VFP InputMask property for DataGridView</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 14 Sep 2026 08:27:45 GMT</lastBuildDate><ttl>20</ttl><item><title>VFP InputMask property for DataGridView</title><link>http://forum.strataframe.net/FindPost8700.aspx</link><description>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)&lt;br&gt;
&lt;br&gt;
I have also found the BindingFormat property, but I am not sure how to get a StrataFrame textbox working in a DataGridView.</description><pubDate>Wed, 09 May 2007 09:39:45 GMT</pubDate><dc:creator>Brooks Adair</dc:creator></item><item><title>RE: VFP InputMask property for DataGridView</title><link>http://forum.strataframe.net/FindPost8703.aspx</link><description>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.&amp;nbsp; 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.&lt;/P&gt;&lt;P&gt;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.&amp;nbsp; MSDN has a sample on how to do this here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://msdn2.microsoft.com/en-us/library/ms180996.aspx"&gt;http://msdn2.microsoft.com/en-us/library/ms180996.aspx&lt;/A&gt;</description><pubDate>Wed, 09 May 2007 09:39:45 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>