C1 Community
ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Setting image align in style

rated by 0 users
This post has 2 Replies | 1 Follower

Not Ranked
Posts 7
gigitongas Posted: Wed, Feb 11 2009 2:24 PM

 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?


Top 25 Contributor
Posts 587
C1_GregL replied on Thu, Feb 12 2009 1:12 PM

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
Not Ranked
Posts 7

 Well, that's a shame.

Thanks for the reply.

Page 1 of 1 (3 items) | RSS
Contact ComponentOne: 1.800.858.2739 ©1987-2010 ComponentOne LLC All Rights Reserved.