Good day.
I have an UltraGrid with some columns and rows, such as:
id, some data, ReadStatus-(boolean value)
1 Peter Adams true
2 John Smith false
I want to display the rows in bold, where the cell value(in ReadStatus) is equal to true, as in the Outlook.
I can get around all the rows in the cycle after filling the dataset and set the style values, but, when I have large amounts of data, the UltraGrid begins to take a long time.
Is there a way to assign style of each row when filling dataset?
P.S. Sorry for my English, its not my native language.
I tried to do this, but nothing to change. Why?
My code (from pressing button. Grid is already filled and showing at the screen):
if (myGrid.DisplayLayout.Bands[0].Columns.Exists("WasRead"))
{
ConditionValueAppearance cva = new ConditionValueAppearance();
Infragistics.Win.OperatorCondition condition = new OperatorCondition(ConditionOperator.Equals, true);
Infragistics.Win.Appearance appearance = new Infragistics.Win.Appearance();
appearance.FontData.Bold = DefaultableBoolean.True;
cva.Add(condition, appearance);
GVOrdersInput.DisplayLayout.Bands[0].Columns["WasRead"].ValueBasedAppearance = cva;
}
After pressing a button nothing to change...
Hello,
I tried this and it always works fine for me so I attached my sample to this post for you. Please review it and feel free to let me know if I misunderstood you or if you have any other questions.
ooops, you are using Infragistics4.Win.v11.2, but my version of controls is Infragistics2.Win.v10.3
Project does not compile :)
Could you please take a look at the new sample and see if it meets your requirements.
I just wanted to know if you were able to solve your issue based on these suggestions or you still need help? Please let me know.