DataGrid height after databinding
-
Dear readers, is there a way to get the size (especially the height) of a datagrid, after i databind a source to it? I need this to know in order to measure the space which is left on the page up to a specific pixel height. Thanks in advance Jens
-
Dear readers, is there a way to get the size (especially the height) of a datagrid, after i databind a source to it? I need this to know in order to measure the space which is left on the page up to a specific pixel height. Thanks in advance Jens
You can make use of the Height Property of your datagrid to retreive its height. :-D Thanks and regards, Suresh Dayma
-
You can make use of the Height Property of your datagrid to retreive its height. :-D Thanks and regards, Suresh Dayma
Thanks Suresh for your answer, if i set the Height of the Datagrid i can retrieve it afterwards, yes. But what i need is the actual height of the table, the amount of space it takes when it is rendered. For example if i have multiple rows in the table which are higher than the default height of a row, the whole table gets higher, because the height of the table is determined by the heights of its rows. And i want to retrieve the height of the table after the datagrid is databinded. Thanks in advance Jens