# Grid Row Formatting

**URL:** <https://www.epiusers.help/t/grid-row-formatting/54485>\
**Category:** Epicor ERP 10\
**Tags:** customization\
**Created:** [April 9, 2019, 9:38pm UTC](https://www.epiusers.help/t/grid-row-formatting/54485 "2019-04-09T21:38:33Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![skearney](https://www.epiusers.help/user_avatar/www.epiusers.help/skearney/32/11498_2.png) [@skearney](https://www.epiusers.help/u/skearney)\
**Post date:** [April 10, 2019, 6:54pm UTC](https://www.epiusers.help/t/grid-row-formatting/54485/11 "2019-04-10T18:54:33Z")

</div>

```auto
	private void gridAttributesSales_InitializeRow(object sender, Infragistics.Win.UltraWinGrid.InitializeRowEventArgs args)
	{
				SalesAttributes = (EpiUltraGrid)csm.GetNativeControlReference("734456b7-1448-419b-87f8-f2c950d63cc2");
		if (args.Row.Cells["Calculated_TotalTouches"].Value.ToString() == "0") 
					{
						SalesAttributes.Row.Appearance.BackColor = Color.Red;
					}	
		
	}
	

```

Okay that line compiles but now I have an issue with the last line…

 ![image](https://epiusers.help/uploads/default/original/3X/2/c/2c08f9c9d5018ec303e345525b145e3f6ac69152.png)

---

_[View the full topic](https://www.epiusers.help/t/grid-row-formatting/54485)._
