Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1935
UltraLabel not refreshing
posted

Hi,

I'm not sure if this is the correct subforum for ultralabels but i wasn't sure where it was, couldn't find Misc or Ultralabel forum.

the new styling of the forum looks sharp indeed, way to go. how ever it appears that i can't insert a image here.... it doesn't let me brawser for the image . i am using (IE8) - this is just FYI

anyway, i am expiriancing a wierd issue with a simple usage of ultralabel.

i have a simple forum with 2 ultragrids and 2 labels, each label is like a title for the grid.

when i load the forum and give the datasource for the grids i am also appending the number of the number of the rows for each label of its relevant grid. very basic stuff

here is my code :

ugMissing.DataSource = ds.Tables[0];
ugActive.DataSource = ds.Tables[1];
lblMis.Text = lblMis.Text + " (" + ds.Tables[0].Rows.Count.ToString() + ")";
lblMis.Refresh();
lblActive.Text = lblActive.Text + " (" + ds.Tables[1].Rows.Count.ToString() + ")";
lblActive.Refresh();

the problem is that while the second label does refresh and show the "(##)" at the end of its string, the first label does not. i can't understand why.
debugging line by line with F10 shows that the lblMis.Text does append the "(##)" to its end but it does not display it on screen, dispite the Refres();
I've replaced the UltraLabel control with the default WinForms Label control and set the name of the control object to the same name that the UltraLabel was - lblMis, and didn't change anything in my code, and the display did show the "(##)" which it didn't before when the control was UltraLabel. what i dont understand is how come the second ultralabel worked fine and the first did not. ofcourse i can leave it as a basic WinForm label , i was just wondering why it happens ?

i've also tried

lblMis.Text = lblMis.Text + "xxx"; // (" + dsResourceVScdis.Tables[0].Rows.Count.ToString() + ")";
lblMis.Refresh();

not working as well.

any ideas?

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi,

    I forwarded your comment about the forums not supported images over to the folks in charge of our new forums so they can check it out. Thanks for the info.

    Regarding the label, I can't see any reason why the text should not display. Is it possible that the label is simply too small and so the text is getting clipped? Or that some other control is covering the right-hand side of it so that you cannot see the text?

    If that doesn't help, perhaps you can attach a small sample project here which demonstrates the issue so we can check it out.

Reply Children
No Data