问题
How to get the Row and Column counts of grid in C#, just regular window control grid, not datagrid or gridview
Thanks
回答1:
Have you tried grid.RowDefinitions.Count
and grid.ColumnDefinitions.Count
?
来源:https://stackoverflow.com/questions/2732837/how-to-get-the-row-and-column-count-of-a-grid-in-c