Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

datagridview column type

$
0
0

I am populating a datagridview control in windows form using c#.
The datagridview is poulated and the first column is Currency.

Question:
Now I would like this column to be set to have autofilter functionality.
How do I do this in c#? Note that at present my datagridview is populated with data.

Is something like the following allowed?
dgv.Columns["Currency"].ColumnType = DataGridViewAutoFilterTextBoxColumn;

Thanks


Viewing all articles
Browse latest Browse all 12583

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>