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
17259
Null text appearance
posted

I want do make null text italic. Is there any thing like null text appearance? If not, is there any way to implement that in code efficiently?

 

Parents
  • 4219
    Verified Answer
    posted

    Hi Amiram,

     

    There is no such property specifically for the NullText property of the grid. You may want to open a feature request for it at the link below:

    http://devcenter.infragistics.com/protected/requestfeature.aspx

    What I can offer you is the following:

        private void ultraGrid1_InitializeRow(object sender, Infragistics.Win.UltraWinGrid.InitializeRowEventArgs e)

            {

                if (e.Row.Cells[2].Value.ToString()=="" )

                    e.Row.Cells[2].Appearance.FontData.Italic = Infragistics.Win.DefaultableBoolean.True;

                else

                    e.Row.Cells[2].Appearance.FontData.Italic = Infragistics.Win.DefaultableBoolean.False;

     

            }

    The InitializeRow event would fire evry time the row is updated, then you can make a check and set the font as Italic or not.

     

    Regards,

    Stefaniya

     

Reply Children