# Filling a textbox field from C# variable

**URL:** <https://www.epiusers.help/t/filling-a-textbox-field-from-c-variable/43365>\
**Category:** Epicor ERP 10\
**Tags:** customization\
**Created:** [March 14, 2018, 3:16pm UTC](https://www.epiusers.help/t/filling-a-textbox-field-from-c-variable/43365 "2018-03-14T15:16:34Z")\
**Posts on this page:** 1\
**Showing post:** 20

<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:** [March 15, 2018, 4:13pm UTC](https://www.epiusers.help/t/filling-a-textbox-field-from-c-variable/43365/20 "2018-03-15T16:13:23Z")

</div>

@fredmeissner, @Banderson just did this on Form\_Load works great… Give it a shot

```cs
private void StartProdForm_Load(object sender, EventArgs args)
  {
  	// Add Event Handler Code
  	
  	var view = ((EpiDataView)(this.oTrans.EpiDataViews["Start"]));
  	if(view.Row>=0)
  	{
  		view.dataView[view.Row].BeginEdit();
  		view.dataView[view.Row]["JobNum"]= "2029";
  		view.dataView[view.Row].EndEdit();
  		
  		view.dataView[view.Row].BeginEdit();
  		view.dataView[view.Row]["AssemblySeq"]=0;
  		view.dataView[view.Row].EndEdit();

  		view.dataView[view.Row].BeginEdit();
  		view.dataView[view.Row]["OprSeq"]=30;
  		view.dataView[view.Row].EndEdit();
  	}
  }

```

Obviously you’d need to pass in the hard coded values in the LFO. But it works just fine

 ![image](https://epiusers.help/uploads/default/original/2X/1/16fe4e7118811381bd158accd9eaee0302182629.png)

---

_[View the full topic](https://www.epiusers.help/t/filling-a-textbox-field-from-c-variable/43365)._
