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
125
Input mask in UltraWinGrid AddRow
posted

Is it possible to modify the column mask in AddRow of UltraGrid ? I have tried to set the MaskInput value in the InitializeLayout call, but the mask works only for normal grid cells. Finally I was able to set the mask also for AddRow cell by using a specific EditorControl. Is it possible to set the mask without using the EditorControl ?

Parents
No Data
Reply
  • 5118
    Suggested Answer
    posted

    Hi,

    Setting the MaskInput property on a Column should also make it show up in the AddRow.  I did a quick test with the latest version and it works as designed. 

    My grid initialize code looks like this:

    private

    void

     

    ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)

    {

        e.Layout.Override.AllowAddNew = Infragistics.Win.UltraWinGrid.AllowAddNew.TemplateOnTop;

    e.Layout.Bands[0].Columns[

    "Col2"].MaskInput = "###-###-####";

    }

    The MaskInput enum is described here.

Children
No Data