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.

Grid Grouping Control - Cell Type Combobox

Thread ID:

Created:

Updated:

Platform:

Replies:

94433 May 12,2010 02:43 PM May 21,2010 10:30 AM Windows Forms 5
loading
Tags: Grouping
Deepa
Asked On May 12, 2010 02:43 PM

Hi,
I am tryinng to support in-cell editing on the gridgrouping control in my application.
I have set one of columns to have a cell type as "ComboBox", have attached a data source and have set the DisplayMember and value member as well.

At runtime when I select the value in the drop-down, it doesn't display the selected value on the grid cell the first time. I select it again and it works fine.

On further investigation, I am now handling the TableControlCurrentCellDropDown event and I obtained the renderer as below -
GridComboBoxCellRenderer ren = e.TableControl.CurrentCell.Renderer as GridComboBoxCellRenderer;

I now see that for the first time the ren.ControlText is empty although there is a value in the ren.ListBoxPart.SelectedItem.
Subsequently the ControlText is populated correctly.

Any idea why the ControlText is empty the first time?

Any help would be greatly appreciated.

Thanks,
Deepa.

Deepa
Replied On May 12, 2010 05:54 PM

Can someone please take a look and respond at the earliest?

Deepa
Replied On May 13, 2010 08:25 AM

Can someone please update??

Jisha Joy [Syncfusion]
Replied On May 14, 2010 12:59 AM

Hi Deepa,

Thank you for posting query to us.

I have prepared a simple sample to test the issue. But I am afraid I was not able to reproduce the issue. Could you please modify the following samplemto reproduce the issue here?


Regards,
Jisha



GC_c778e5c6.zip

Jignesh H. Sodvadiya
Replied On May 14, 2010 08:41 AM

Dear Sir,

I have Problem in Grouping Grid Control how to Get Values From Particular Cell Value
ThaNKS
Please Reply,

Arulraj A [Syncfusion]
Replied On May 21, 2010 10:30 AM

Hi Jignesh,

Through the StyleInfo properties: Text and CellValue, the respective cell values can be accessed in GridGroupingControl.

Console.WriteLine(this.gridGroupingControl.TableModel[5,3].Text);
Console.WriteLine(this.gridGroupingControl.TableModel[5,3].CellValue.ToString());


Regards,
Arulraj.A

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.

;