counting the number of columns in a data grid

  • Thread starter Thread starter Brian Anderson
  • Start date Start date
B

Brian Anderson

Hello,

I am creating a windows application with a data grid
contained on it. I want to find out the number of columns
contained in the data grid at runtime, but I am not sure
how to do this. I know that when using ASP.NET the data
grid control has a class called datagrid.columns.count
that does this, however the windows data grid control does
not have this class. Could anyone help with this?
 
Back
Top