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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridListControlCell Edit Record option

Thread ID:





88463 Jul 24,2009 03:19 PM UTC Aug 14,2009 02:10 PM UTC WinForms 3
Tags: GridControl
Santosh U
Asked On July 24, 2009 03:19 PM UTC


I am using following code to populate a GridList control to show MultiColumn dropdown on a cell. Is there any way I can have Pencil icon (which we get when we use ForeignKeyRelation in GridGrouping)? If yes please help me.

gridgroupingcontrol1.TableDescriptor.Columns["Customers"].Appearance.AnyRecordFieldCell.CellType = GridCellTypeName.GridListControl;
gridgroupingcontrol1TableDescriptor.Columns["Customers"].Appearance.AnyRecordFieldCell.ValueMember = "Customers_ID";
gridgroupingcontrol1.TableDescriptor.Columns["Customers"].Appearance.AnyRecordFieldCell.DisplayMember = "Customers_Name";

gridgroupingcontrol1.TableDescriptor.Columns["Customers"].Appearance.AnyRecordFieldCell.DataSource = dsCustomers.Tables[0];

I am using such code since I want to load different data (Like Customer, Products, Countries etc.) on every different Cell in a single Column.

Santosh U.

Rajadurai C [Syncfusion]
Replied On July 27, 2009 01:46 PM UTC

Hi Santosh,

Thanks for your interest in Syncfusion Products.

It seems you would like to have the pencil icon in the dropdownlist just as found in the column header when using ForeignKeyReference relationkind. The gridlistcontrol is read-only. The dropdownlist doesn't allow editing. Hence, there is no place to display pencil icon in it. Here is a sample for your reference.

If it seems i misunderstood the issue, please let me clear with some more details through a screenshot about your requirement. It would be fine for us to see the issue and work to provide a solution.


Santosh U
Replied On August 12, 2009 01:32 PM UTC

Hi Rajadurai,

You have the issue right but the problem i have is i can not use ForeignKey Relation in this case.
My basic requirement is once i click on the drop down it sees what is available in previous column and according to that fetches the data, I am not sure if we can do this using foreign key relations since in that the entire column has one data source.

Let me know if this achievable and if then how can we do that.

I hope I am able to explain what I require.

Santosh U

Rajadurai C [Syncfusion]
Replied On August 14, 2009 02:10 PM UTC

Hi Santosh,

Thanks for your update.

With GridListControl celltype, the dropdownlist cannot be allowed to edit as it is the one derived from ListBox control. If you want to achieve the editing in dropdownlist thereby allowing the pencil icon to appear in rowheader of dropdownlist item, you can customize the dropdownlist embedding griddataboundgrid into it. This grid has similar look and feel as that of GridListControl.

Please refer to the sample in following forum thread in which the grid is embedded in dropdownlist.

Also please refer to our browser sample in Syncfusion Dashboard, Grid samples -> Custom Cell Type -> Drop-Down Grid Demo in which embedding editable dropdowns in grid has been illustrated.



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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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