Hi,
Is it possible to change the color or the background of grand summaries for Labor Transactions grid in Job Tracker?
I was able to only change the color for the header, but not the summaries.
Thanks,
Johnny
Hi,
Is it possible to change the color or the background of grand summaries for Labor Transactions grid in Job Tracker?
I was able to only change the color for the header, but not the summaries.
Thanks,
Johnny
Jose,
I tried that as well but the grdLaborTransactions does not initialize…
What else am I missing?
Thanks,
Johnny
I believe you have to call the native control.
EpiUltraGrid grid = (EpiUltraGrid)csm.GetNativeControlReference(“EpiGuid here”);
ALl Grids initialize, you just have to get a hold of it and setup the Event for it to trigger
Yeah I did initialize it:
this.grdLaborTransactions = ((EpiUltraGrid)csm.GetNativeControlReference(“f45f4532-176c-4a87-8459-4cf95e66fd38”)); //init
but I don’t group that labor transactions table as it says on that forum.
If I group I get this error: “Specified cast is not valid.”
I’ve managed to get the color changed for the rows and header, but not the summaries.
Thanks guys, I’ll keep trying!
I think I got it
//Declare on Top of the Class
EpiUltraGrid ug;
//Inside Initialize Custom Code
ug = (EpiUltraGrid)csm.GetNativeControlReference("f45f4532-176c-4a87-8459-4cf95e66fd38");
ug.SummaryValueChanged += new Infragistics.Win.UltraWinGrid.SummaryValueChangedEventHandler(this.ug_SummaryValueChanged);
//
//Inside DestroyCustomCode
ug.SummaryValueChanged -= new Infragistics.Win.UltraWinGrid.SummaryValueChangedEventHandler(this.ug_SummaryValueChanged);
//
private void ug_SummaryValueChanged(object sender, Infragistics.Win.UltraWinGrid.SummaryValueChangedEventArgs args)
{
// ** Place Event Handling Code Here **
ug.Rows.SummaryValues[0].Appearance.BackColor = System.Drawing.Color.Blue;
}
Thanks Jose, I did not think of Summary Value Changed…
I appreciate your help!