I tried this one but getting the Error::Cannot implicitly convert type 'System.Drawing.Brush' to 'System.Windows.Media'
{
}
Hello,
The problem is with the type of brush. The Background property is of type LinearGradientBrush. You can see all the default styles in the local directory on your computer : "~ \Infragistics\NetAdvantage for WPF 2008 Vol. 2\DefaultStyles". Here is the solution:
RecordCollectionBase recordCollection = grdPayments.Records;
foreach (Record rec in recordCollection)
if (rec.Index == grdPayments.Records.Count-1)
DataRecordPresenter.FromRecord(rec).Background = new LinearGradientBrush(Colors.Azure, Colors.CadetBlue, 45);
Hope this helps.
Thanks For the Help But when i am trying this also it is giving me the error:- Object reference not set to an instance of an object.
///Here is is showing the Error//
Hi,
The problem is probably in the event you want to change the color in. Here is a sample project and I hope it would help you.