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.
Syncfusion Feedback

Drop down cells

Thread ID:

Created:

Updated:

Platform:

Replies:

27662 Apr 15,2005 12:31 PM UTC Apr 15,2005 09:00 PM UTC Windows Forms 1
loading
Tags: Grouping
Rishi Tandon
Asked On April 15, 2005 12:31 PM UTC

Hi, I need to set the cells of a row, for all columns, to be Combo-box. All the examples metion setting cells of a specific column to Combo-box Is there a way to achieve this? Regards, Rishi

Administrator [Syncfusion]
Replied On April 15, 2005 09:00 PM UTC

Hi Rishi, you can handle the QueryCellStyleInfo event and change the cell-type for any cell at runtime by setting e.Style.CellType = "ComboBox"; Example: this.gridGroupingControl1.QueryCellStyleInfo += new GridTableCellStyleInfoEventHandler(gridGroupingControl1_QueryCellStyleInfo); private void gridGroupingControl1_QueryCellStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellStyleInfoEventArgs e) { switch (e.TableCellIdentity.TableCellType) { case GridTableCellType.AlternateRecordFieldCell: case GridTableCellType.AddNewRecordFieldCell: case GridTableCellType.RecordFieldCell: { GridTable table = e.TableCellIdentity.Table; string tableName = table.TableDescriptor.Name; GridRecord record = (GridRecord) e.TableCellIdentity.DisplayElement.ParentRecord; string fieldName = e.TableCellIdentity.Column.MappingName; e.Style.CellType = "ComboBox"; break; } } Stefan >Hi, > >I need to set the cells of a row, for all columns, to be Combo-box. > >All the examples metion setting cells of a specific column to Combo-box > >Is there a way to achieve this? > >Regards, >Rishi >

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.

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

;