Re: Setting image align in style

Windows Mobile

.NET Compact Framework controls

Setting image align in style

  • rated by 0 users
  • This post has 2 Replies |
  • 1 Follower
  •  I'm setting the image align to "Strech" in the Normal style, but it doesn't seems to work.

    This is my code:

     private void Form3_Load(object sender, EventArgs e)
            {    
                //Setting grid
                c1FlexGrid1.Styles.Normal.ImageAlign = C1.Win.C1FlexGrid.ImageAlignEnum.Stretch;            
                
                //Populate whit data
                DataTable dt = new DataTable();
                dt.Columns.Add("ID", typeof(int));
                dt.Columns.Add("Name", typeof(string));
                dt.Columns.Add("Region", typeof(string));
                dt.Rows.Add(new object[] { 1, "John", "North" });
                dt.Rows.Add(new object[] { 2, "Paul", "South" });
                dt.Rows.Add(new object[] { 3, "Ringo", "East" });
                dt.Rows.Add(new object[] { 4, "George", "West" });
                c1FlexGrid1.DataSource = dt;
                c1FlexGrid1.Cols[0].Width = 10;
            }

            private void c1FlexGrid1_OwnerDrawCell(object sender, C1.Win.C1FlexGrid.OwnerDrawCellEventArgs e)
            {
                e.Image = pictureBox1.Image;
            }

     

    What's going on? It works fine in desktop

    Mobile doesn´t support it?


  • Unfortunately, that is correct.  The mobile version does not support Tile, Scale and Stretch image alignments.  If you'd like us to enhance this feature we'd appreciate your feedback at feedback@componentone.com

    Regards,

    Greg Lutz ComponentOne

  •  Well, that's a shame.

    Thanks for the reply.

Page 1 of 1 (3 items)