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.

HOW-TO

Thread ID:

Created:

Updated:

Platform:

Replies:

26134 Mar 15,2005 09:06 AM Mar 15,2005 11:19 AM Windows Forms 3
loading
Tags: GridControl
Prof DISSOU Jamâl-Dine
Asked On March 15, 2005 09:06 AM

Please I would like to know HOW TO : 1. Add GridListControl CellType Column to a GridDataBound 2. Add Notification ComboBox CellType Column to a GridDataBound 3. Format TextBox CellType Column in a GridDataBound to (Integer, Double, Percent, DateTime) 4. Add Unbound TextBox CellType Column to a GridDataBound 5. Add Join TextBox CellType Column to a GridDataBound 6. Set the Width of a GridDataBoundColumn to a specific size. Best regards, Jamâl-Dine DISSOU

Administrator [Syncfusion]
Replied On March 15, 2005 09:56 AM

Add GridBoundColumn objects to the grid.GridBoundColumns collection, one for each column you want to see in the grid. Make sure you set the gridBoundColumn1.MappingName property to indicate the column from your DataTable that should be seen in the grid. >1. Add GridListControl CellType Column to a GridDataBound On the GridBoundColumn for the column, set gridBoundColumn1.StyleInfo.CellType = "GridListControl"; gridBoundColumn1.StyleInfo.DataSource = yourColumnDataSource; gridBoundColumn1.StyleInfo.DataMember = yourColumnDataMember; gridBoundColumn1.StyleInfo.ValueMember = yourColumnValueMember; >2. Add Notification ComboBox CellType Column to a GridDataBound Same as except you set gridBoundColumn1.StyleInfo.CellType = "ComboBox"; You can also set gridBoundColumn1.StyleInfo.DropDownStyle to get different dropdown behaviors. If you do not want to use a DataSource/DataMember/ValueMember type of data source, then you can create a StringCollection of just strings, and set it to the StyleInfo.ChoiceList instead to populate the combobox drop down. >3. Format TextBox CellType Column in a GridDataBound to (Integer, Double, Percent, DateTime) Make sure you set gridBoundColumn1.StyleInfo.CellValueType to the appropriate type. Then you can set gridBoundColumn1.StyleInfo.Format to a format string. >4. Add Unbound TextBox CellType Column to a GridDataBound You add a GridBoundColumn with a mappingname different from any in the DataTable. Then you use grid.Model.QueryCellInfo to provide these unbound values on demand. See the \Syncfusion\Essential Suite\3.0.1.0\Windows\Grid.Windows\Samples\DataBound\GDBGMultiHeader for a sample project. >5. Add Join TextBox CellType Column to a GridDataBound I do not know what this means. If youare talking about adding a column from a second datatable, then you would have to treat it as an unbound column as descibed in your other question. If you are talking about a foreign key look-up table, then that is the purpose of the DataSource/DataMember/valueMember for the comboboxes. You can hide the button on a column of comboboxes by setting StyleInfo.ShowButtons=Hide for that column to make a foreign key combobox column look like a column of textboxes. >6. Set the Width of a GridDataBoundColumn to a specific size. http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=92&catId=11

Prof DISSOU Jamâl-Dine
Replied On March 15, 2005 11:18 AM

>Add GridBoundColumn objects to the grid.GridBoundColumns collection, one for each column you want to see in the grid. Make sure you set the gridBoundColumn1.MappingName property to indicate the column from your DataTable that should be seen in the grid. > >>1. Add GridListControl CellType Column to a GridDataBound > >On the GridBoundColumn for the column, set > >gridBoundColumn1.StyleInfo.CellType = "GridListControl"; >gridBoundColumn1.StyleInfo.DataSource = yourColumnDataSource; >gridBoundColumn1.StyleInfo.DataMember = yourColumnDataMember; >gridBoundColumn1.StyleInfo.ValueMember = yourColumnValueMember; > > >>2. Add Notification ComboBox CellType Column to a GridDataBound > >Same as except you set gridBoundColumn1.StyleInfo.CellType = "ComboBox"; >You can also set gridBoundColumn1.StyleInfo.DropDownStyle to get different dropdown behaviors. > >If you do not want to use a DataSource/DataMember/ValueMember type of data source, then you can create a StringCollection of just strings, and set it to the StyleInfo.ChoiceList instead to populate the combobox drop down. > >>3. Format TextBox CellType Column in a GridDataBound to (Integer, Double, Percent, DateTime) > >Make sure you set gridBoundColumn1.StyleInfo.CellValueType to the appropriate type. Then you can set gridBoundColumn1.StyleInfo.Format to a format string. > >>4. Add Unbound TextBox CellType Column to a GridDataBound > >You add a GridBoundColumn with a mappingname different from any in the DataTable. Then you use grid.Model.QueryCellInfo to provide these unbound values on demand. See the \Syncfusion\Essential Suite\3.0.1.0\Windows\Grid.Windows\Samples\DataBound\GDBGMultiHeader for a sample project. > >>5. Add Join TextBox CellType Column to a GridDataBound > >I do not know what this means. If youare talking about adding a column from a second datatable, then you would have to treat it as an unbound column as descibed in your other question. If you are talking about a foreign key look-up table, then that is the purpose of the DataSource/DataMember/valueMember for the comboboxes. You can hide the button on a column of comboboxes by setting StyleInfo.ShowButtons=Hide for that column to make a foreign key combobox column look like a column of textboxes. > >>6. Set the Width of a GridDataBoundColumn to a specific size. > >http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=92&catId=11 > > > >

Prof DISSOU Jamâl-Dine
Replied On March 15, 2005 11:19 AM

thanks a lot for your help Jamâl-Dine DISSOU

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.

;