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.

How to get cell value from gridnestedtable

Thread ID:

Created:

Updated:

Platform:

Replies:

77031 Oct 8,2008 02:08 PM Oct 9,2008 12:51 PM Windows Forms 3
loading
Tags: GridControl
Bruce Bradford
Asked On October 8, 2008 02:08 PM

Hi,

I have a GGC and I'm able to get the call value of parent rows by using:


GridTableCellStyleInfo style= tblctrl.Table.GetTableCellStyle(rows,column);
cellvalue= style.CellValue;

But this doesn't work for a gridnestedtable.

What's the best approach to handle this?


Bruce Bradford
Replied On October 8, 2008 07:19 PM

Hello again,
I was able to get the value by:
cellvalue = ((GridNestedTable)gridGGC.Table.DisplayElements[rowindex]).ChildTable.DisplayElements[0].GetRecord().GetValue("colname");

but this doesn't get the formatted text displayed on the screen. So how do I get the formatted text?

>Hi,

I have a GGC and I'm able to get the call value of parent rows by using:


GridTableCellStyleInfo style= tblctrl.Table.GetTableCellStyle(rows,column);
cellvalue= style.CellValue;

But this doesn't work for a gridnestedtable.

What's the best approach to handle this?




Jisha Joy [Syncfusion]
Replied On October 9, 2008 03:20 AM

Hi,

Getting FormattedText

You can use FormattedText property for this purpose:

Please refer the code:

gridGroupingControl1.Table.GetTableCellStyle(gridRecord, fieldName).FormattedText

Regards,
Jisha


Bruce Bradford
Replied On October 9, 2008 12:51 PM

Thanks for responding!

However, this doesn't work when the element is a gridnestedtable.

I've created Incident#: 50395
In direct-trac for help.

Thanks again!

>Hi,

Getting FormattedText

You can use FormattedText property for this purpose:

Please refer the code:

gridGroupingControl1.Table.GetTableCellStyle(gridRecord, fieldName).FormattedText

Regards,
Jisha




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.

;