How to get the Row and Column count of a grid in C#?

好久不见. 提交于 2019-12-12 16:51:25

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!