How to get cell value from gridnestedtable

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?


3 Replies

BB Bruce Bradford 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?





JJ Jisha Joy Syncfusion Team 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



BB Bruce Bradford 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




Loader.
Up arrow icon