# Write to CSV with button. Used for Bartender

**URL:** <https://www.epiusers.help/t/write-to-csv-with-button-used-for-bartender/37650>\
**Category:** Epicor ERP 10\
**Created:** [March 16, 2017, 7:27pm UTC](https://www.epiusers.help/t/write-to-csv-with-button-used-for-bartender/37650 "2017-03-16T19:27:26Z")\
**Posts on this page:** 1\
**Showing post:** 58

<div class="post-metadata">

**Author:** ![Banderson](https://www.epiusers.help/user_avatar/www.epiusers.help/banderson/32/50875_2.png) [@Banderson](https://www.epiusers.help/u/Banderson)\
**Post date:** [December 2, 2019, 8:21pm UTC](https://www.epiusers.help/t/write-to-csv-with-button-used-for-bartender/37650/58 "2019-12-02T20:21:36Z")

</div>

You’ll have to go find some examples for how you would work with data in the data view. Once you figure out how to get that, you can drop it into the CSV format as shown above.

This is an example for a dataview in a UD screen, but you have a dataview for every screen. You can use the object explorer to find the info for what’s in the dataview on the screen.

> [@Returning a Value from a Data View](https://www.epiusers.help/t/returning-a-value-from-a-data-view/58634/5):
>
> Well…bizarre… That should have worked then… Ok maybe overkill… but try the following after your sort… foreach(DataRow row in edvUD11.dataView.Table.Rows) { MessageBox.Show( row["ShortChar01"].ToString()); } just to verify

---

_[View the full topic](https://www.epiusers.help/t/write-to-csv-with-button-used-for-bartender/37650)._
