This is a migrated thread and some comments may be shown as answers.

CellFormatting invisible cells

4 Answers 97 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Zenute Marins
Top achievements
Rank 1
Zenute Marins asked on 08 Mar 2012, 12:06 AM
How do I access invisible cells value/text in cellformatting?

4 Answers, 1 is accepted

Sort by
0
Zenute Marins
Top achievements
Rank 1
answered on 08 Mar 2012, 12:20 AM
I figured it out.
In CellFormatting I retrieved the hidden cell value  by accessing:
radgrid.Rows[e.RowIndex].Cells["hiddencell"].Value.ToString();

I hope this is the right way to do it.

Thank you.
0
Richard Slade
Top achievements
Rank 2
answered on 08 Mar 2012, 10:33 AM
Hi,

Yes, this is the correct way to approach it. You can do the same inside row formatting too.
Regards,
Richard
0
Accepted
Boryana
Telerik team
answered on 09 Mar 2012, 10:45 AM
Hello,

Thank you for writing.

As Richard said, the approach is correct. I would just like to add a reference to two of our documentation articles that provide further information on the topic: Formatting Cells and Formatting Rows.

Kind regards,
Boryana
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
0
Zenute Marins
Top achievements
Rank 1
answered on 09 Mar 2012, 01:13 PM
Boryana,

I have already read those articles and they were quite helpful.

Thank you.
Tags
GridView
Asked by
Zenute Marins
Top achievements
Rank 1
Answers by
Zenute Marins
Top achievements
Rank 1
Richard Slade
Top achievements
Rank 2
Boryana
Telerik team
Share this question
or