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
4970
How to get the whole row count of datasource of xamGrid for databinding?
posted

I want to bind the count of datasource(itemsource) for xamGrid in Page style. So tried in this way:

Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Cell.Row.Manager.Rows.Count}"

but that is the number of rows in one page, same as pagesize, not the total count of datasource.

What's the right path for this case?

Or if xamGrid dataContext is viewmodel which has a property say TotalCount, how to bind it to a textbox in PageStyle?