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

Gridview - Child element

1 Answer 80 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Nicklas
Top achievements
Rank 1
Nicklas asked on 11 Jun 2019, 08:35 PM

Hello, I have a gridview as shown in the picture, I'm trying to iterate throw all group header rows, and access the progress bar in order to set a image for the progress bar. 

 

Is this possiple? 

 

Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Nicklas
Top achievements
Rank 1
answered on 11 Jun 2019, 08:38 PM

Note: This is how they are created. I'm trying to iterate throw them outside the below override function

 

  protected override void CreateChildElements()
            {
                base.CreateChildElements();
                stack = new StackLayoutElement();
                stack.Orientation = Orientation.Horizontal;
                stack.StretchHorizontally = true;

                checkBoxElement.StretchHorizontally = false;
                checkBoxElement.CheckStateChanged += checkBoxElement_CheckStateChanged;
                textElement.TextAlignment = ContentAlignment.MiddleLeft;
                this.Children.Add(stack);
                stack.Children.Add(checkBoxElement);
                stack.Children.Add(textElement);


                ///////////
                pro.StretchHorizontally = false;
                pro.AutoSize = false;
                pro.Size = new Size(250, 45);//48
                pro.Alignment = ContentAlignment.MiddleRight;
                pro.Margin = new Padding(0, 0, 0, 5);

                pro.HighlightColor = Color.FromArgb(191, 219, 255);
                stack.Children.Add(pro);                
            }

Tags
GridView
Asked by
Nicklas
Top achievements
Rank 1
Answers by
Nicklas
Top achievements
Rank 1
Share this question
or