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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

8492 Nov 7,2003 12:16 PM Nov 7,2003 03:49 PM Windows Forms 1
loading
Tags: GridControl
Jonathan Guidry
Asked On November 7, 2003 12:16 PM

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 03:49 PM

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

CONFIRMATION

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.

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.

;