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.

GridListControlCell Edit Record option

Thread ID:

Created:

Updated:

Platform:

Replies:

88463 Jul 24,2009 11:19 AM Aug 14,2009 10:10 AM Windows Forms 3
loading
Tags: GridControl
Santosh U
Asked On July 24, 2009 11:19 AM

Hi,

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.

Thanks,
Santosh U.

Rajadurai C [Syncfusion]
Replied On July 27, 2009 09:46 AM

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.
http://files.syncfusion.com/support/samples/Grid.Windows/7.3.0.20/F88463.zip

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.

Regards,
Rajadurai

Santosh U
Replied On August 12, 2009 09:32 AM

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.

Thanks,
Santosh U

Rajadurai C [Syncfusion]
Replied On August 14, 2009 10:10 AM

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.
http://www.syncfusion.com/support/forums/grid-windows/79614

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.

Regards,
Rajadurai

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.

;