Hi The Original Mr B,
Based on my understanding, you want to persist the information of the DataGridView as DataView. As far as I know, there is no such way, but we can use other methods to save and fetch the information of the DataGridView, such as save the information as a xml document or a text. For eample, if you want to persist the information of the DataGridView to a xml, the file/stream can be like this:
<?xml version="1.0" encoding="utf-8" ?>
<DataGridView name="dgv">
<columns>
<column name="col1" filter="col1>1" visible="true"></column>
<column name="col2" filter="col2='good'" visible="true"></column>
<column name="col3" filter="" visible="false"></column>
</columns>
<data>
<!--persist data here-->
</data>
</DataGridView>
Let me know if this helps or not.
Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.