Get all values from GridViewExpressionColumn (WPF)

2 Answers 48 Views
GridView
Tal
Top achievements
Rank 1
Tal asked on 26 Feb 2023, 11:22 AM

I have issue at WPF  Telerik.Windows.Controls.GridView

 

I created new columns (GridViewExpressionColumn) the names are "CalculatedColumn" at RadGridView and see the result as at image 

I would like to get the data of the columns from RadGridView, and to create from this column the list of values 

for example:

on first column I would to get all Booleans values as list

 

2 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 27 Feb 2023, 04:24 PM

Hi Tal,

You can iterate all calculated values with the following code:

 var col = this.RadGridView1.Columns[2] as GridViewExpressionColumn;
            foreach (var GridItem in RadGridView1.Items)
            {
                var cellValue = col.GetValueForItem(GridItem);
            }

Regards,
Petar Mladenov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
n/a
Top achievements
Rank 1
Iron
answered on 27 Feb 2023, 05:09 PM
Thanks for sharing your code, Peter. 
Everything works as expected now.
Tags
GridView
Asked by
Tal
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
n/a
Top achievements
Rank 1
Iron
Share this question
or