# Parsing (Updating) Data

Learn about parsing data using C1Input.

## Content



Data modified by the end user in a **C1Input** control is converted from a string to a typed [Value](/componentone/api/win/online-input/dotnet-framework-api/C1.Win.C1Input.4.8/C1.Win.C1Input.C1TextBox.Value.html). Converting data from a string representation is called _parsing_. It is the opposite of formatting. Parsing is controlled by the [ParseInfo](/componentone/api/win/online-input/dotnet-framework-api/C1.Win.C1Input.4.8/C1.Win.C1Input.C1TextBox.ParseInfo.html) property. The ParseInfo property provides access to the ParseInfo Class that contains sub-properties that control different aspects of parsing.

For the most part, you will probably be satisfied with the default parsing that is performed according to the format specification, as it is the inverse of formatting. By default, the same format property value is used for parsing as for formatting. However, you can change any of aspects of how the control parses, by expanding the ParseInfo property, changing the **(Inherit)** flags, and setting desired properties.

The ParseInfo class also contains two flag properties, [NumberStyle](/componentone/api/win/online-input/dotnet-framework-api/C1.Win.C1Input.4.8/C1.Win.C1Input.ParseInfo.NumberStyle.html) and [DateTimeStyle](/componentone/api/win/online-input/dotnet-framework-api/C1.Win.C1Input.4.8/C1.Win.C1Input.ParseInfo.DateTimeStyle.html), which enable you to fine-tune parsing by allowing or disallowing white spaces and special characters in input strings for numeric and date-time data. For more information see the ParseInfo class in the reference section.

By setting the [FormatType](/componentone/api/win/online-input/dotnet-framework-api/C1.Win.C1Input.4.8/C1.Win.C1Input.C1TextBox.FormatType.html) property to [UseEvent](/componentone/api/win/online-input/dotnet-framework-api/C1.Win.C1Input.4.8/C1.Win.C1Input.FormatTypeEnum.html), you can make your parsing entirely custom through writing code to handle the parsing action in the [Parsing](/componentone/api/win/online-input/dotnet-framework-api/C1.Win.C1Input.4.8/C1.Win.C1Input.C1TextBox.Parsing.html) event.


> type=note
> **Note**: Parsing is not performed in [DateTimeInput](/componentone/api/win/online-input/dotnet-framework-api/C1.Win.C1Input.4.8/C1.Win.C1Input.C1TextBox.DateTimeInput.html) and [NumericInput](/componentone/api/win/online-input/dotnet-framework-api/C1.Win.C1Input.4.8/C1.Win.C1Input.C1TextBox.NumericInput.html) modes. It is unnecessary, because in this case the content is already a typed value (date/time or number), so there is no need to parse a string to obtain the value.

## See Also

[Culture (Regional) Settings](/componentone/docs/win/online-input/usingthec1inputcontr/cultureregionalsetting)