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

HOW-TO

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

3 Replies

AD Administrator Syncfusion Team March 15, 2005 02:56 PM UTC

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


PD Prof DISSOU Jamâl-Dine March 15, 2005 04:18 PM UTC

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


PD Prof DISSOU Jamâl-Dine March 15, 2005 04:19 PM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon