snipt

Ctrl+h for KB shortcuts

C#

Clear a datagridview

dataGridViewID.DataSource = null;
https://snipt.net/embed/2e287937ac400882d78e1a4488d6f277/
/raw/2e287937ac400882d78e1a4488d6f277/
2e287937ac400882d78e1a4488d6f277
csharp
C#
1
2019-06-07T14:16:24
True
False
False
/api/public/snipt/33491/
clear-a-datagridview
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="n">dataGridViewID</span><span class="p">.</span><span class="n">DataSource</span> <span class="p">=</span> <span class="k">null</span><span class="p">;</span> </span></pre></div> </td></tr></table>
clear, datagridview