how to check column exist in datagrid C# windows application?
<p>i wan to check the column exist or not, i bind the data from database to datagrid and i added link button as column along with datagrid. I used the following code in button click event.</p>

<pre><code>con.Open();
            SqlDataAdapter dadatagrid1 = new SqlDataAdapter("Select * from Stocktransferlocation", con);
            DataSet dsdatagrid1 = new DataSet();
            dadatagrid1.Fill(dsdatagrid1);
            dataGridView_stocktransferlist.DataSource = dsdatagrid1.Tables[0];
            con.Close();
 DataGridViewLinkColumn btn = new DataGridViewLinkColumn();
                dataGridView_stocktransferlist.Columns.Add(btn);
                btn.HeaderText = "Click";
                btn.Text = "Click Here";
                btn.Name = "btn";
                btn.UseColumnTextForLinkValue = true;
</code></pre>

<p>Here my problem is if click add button the datas saved and click link is appearing. if click next time click appear 2 times</p>

<p>I just want to check column exist in datagrid.. i tried</p>

<pre><code>if (dataGridView_stocktransferlist.Columns.Contains("Click") == true)
</code></pre>

<p>but its not working</p>
