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?
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
Thanks, but this code will create a cell in memory for each value which is not efficient at all. I can use the GetCellValue to avoid that for the "if" statement, but is there any way to change the font without using the Cells property?
Hello Jezze,
After some research, the "Ability to set NullTextAppearance" has been determined to be a new product idea. I have sent your idea directly to our product management team.
Our product team chooses new ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested features, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your idea is chosen for development, you will be notified at that time.
Your reference number for this product idea is PI12060027.
If you would like to follow up on your request at a later point, you may contact Developer Support management via email. Please include the reference number of your product idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
Thank you for your request.
Does nobody made a request for this useful feature since 2010? Because there is still no NullTextAppearance on the column in the latest Infragistics release?
No, there's no way to set an appearance on a cell without creating that cell. You could save memory by creating a single Appearance object and re-using it for every cell, though.
There probably should be a NullTextAppearance on the column. You should Submit a feature request to Infragistics