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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to get cell value from gridnestedtable

Thread ID:

Created:

Updated:

Platform:

Replies:

77031 Oct 8,2008 06:08 PM UTC Oct 9,2008 04:51 PM UTC WinForms 3
loading
Tags: GridControl
Bruce Bradford
Asked On October 8, 2008 06:08 PM UTC

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 11:19 PM UTC

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 07:20 AM UTC

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 04:51 PM UTC

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.

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

;