We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Binding a formater and parser to a column....

Thread ID:





8492 Nov 7,2003 05:16 PM UTC Nov 7,2003 08:49 PM UTC WinForms 1
Tags: GridControl
Jonathan Guidry
Asked On November 7, 2003 05:16 PM UTC

is there anyway to set the binding of a column or cell similar to a System.Windows.Forms.Binding? I use the following code to format data from a dataview to a textbox. Is it possible to do a something similar to a cell in the gridControl? IE Binding col1Binding = new Binding("Column1",this.catalogDataSet1.Tables["Table1"].DefaultView, "Column1"); col1Binding.Format += new ConvertEventHandler(column1_Format); col1Binding.Parse +=new ConvertEventHandler(column1_Parse); textBox1.DataBindings.Add( col1Binding ); GridControl.Column["xyz"].DataBindings.Add( col1Binding ) Thanks, Jonathan

Administrator [Syncfusion]
Replied On November 7, 2003 08:49 PM UTC

Check out the SaveCellFormattedText and QueryCellFormattedText events. Maybe also SaveCellText and QueryCellText. These events are called to convert the cells value into the string to be displayed in te cell and vice versa. Stefan


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon