Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
415
Setting Grid's rowdefinition programatically
posted

Hi,

I have a UserControl which itself contains 2usercontrols(XAM datagrid ). i have set Grid's Rowdefinition currently as *,Auto.

if there is huge data in 2nd XAMdatagrid it hides 1st one. i can set rowdefinition fixed .5* for second but 1st XAMDatagrid is parent grid and there may or may not childs in 2nd XAMDatagrid. so in that case half page will be empty.

i need to sent 2nd RowDefinition programmaticaly, if there are childrens it shd be .5* not it shd be auto. Is there any propery of XAMDatagrid which can be used to find number of Rows so that we can set DataTrigger for 2nd RowDefinition to find if rows exist in 2nd XAMDatagrid?

Regards

Hitesh