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
875
ALL CAPS UnboundField
posted

Why is there seemingly no CharacterCasing property in the datapresenter, specifically the unbound field?  I would like cells that are only upper case, but I can't just set it to upper?  How can I do this?

Parents
No Data
Reply
  • 890
    Suggested Answer
    posted

    Hi,

    The code should solve the problem:

     

     

     

    if (e.Cell.Field.Name == "TargetFieldName")

    {

    e.Editor.Text = e.Editor.Value.ToString().ToUpper();

    e.Editor.Value = e.Editor.Text;

    }

    }

    You need to hook to the XamDataGrid’s CellChanged event and if the calling cell is part of the desired unbound field execute the code.

     

Children
No Data