# Efficiently Adding Column to DataGrid

**URL:** <https://www.epiusers.help/t/efficiently-adding-column-to-datagrid/36283>\
**Category:** Epicor ERP 10\
**Created:** [November 15, 2016, 1:32pm UTC](https://www.epiusers.help/t/efficiently-adding-column-to-datagrid/36283 "2016-11-15T13:32:41Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![josecgomez](https://www.epiusers.help/user_avatar/www.epiusers.help/josecgomez/32/55731_2.png) [@josecgomez](https://www.epiusers.help/u/josecgomez)\
**Post date:** [November 15, 2016, 3:39pm UTC](https://www.epiusers.help/t/efficiently-adding-column-to-datagrid/36283/5 "2016-11-15T15:39:52Z")

</div>

Here’s a quick example that does what you want ( and a brief video explaining how it works if ya wanna know)

```cs
	//Using 
	using Ice.Lib.Broadcast;
	//Class Level 

	BAQDataView baqViewLate;
	public void CreateLateBAQView()
	{
		baqViewLate = new BAQDataView("LateOpenPos");
		oTrans.Add("LateOpenPOBAQ",baqViewLate);

		string pubBinding = "POTotal.BuyerID";
		IPublisher pub = oTrans.GetPublisher(pubBinding);
		if(pub==null)
		{
			oTrans.PublishColumnChange(pubBinding, "MyCustomPublish");
			pub = oTrans.GetPublisher(pubBinding);
		}

		if(pub !=null)
			baqViewLate.SubscribeToPublisher(pub.PublishName, "POHeader_BuyerID");
	}

```

---

_[View the full topic](https://www.epiusers.help/t/efficiently-adding-column-to-datagrid/36283)._
