Efficiently Adding Column to DataGrid

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

	//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");
	}

28 Likes