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
close icon

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

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

1 Reply

AD Administrator Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon