{"action":"opened","issue":{"url":"https://api.github.com/repos/akgulebubekir/Xamarin.Forms.DataGrid/issues/100","repository_url":"https://api.github.com/repos/akgulebubekir/Xamarin.Forms.DataGrid","labels_url":"https://api.github.com/repos/akgulebubekir/Xamarin.Forms.DataGrid/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/akgulebubekir/Xamarin.Forms.DataGrid/issues/100/comments","events_url":"https://api.github.com/repos/akgulebubekir/Xamarin.Forms.DataGrid/issues/100/events","html_url":"https://github.com/akgulebubekir/Xamarin.Forms.DataGrid/issues/100","id":351870474,"node_id":"MDU6SXNzdWUzNTE4NzA0NzQ=","number":100,"title":"Error when trying to sort on a custom datatemplate","user":{"login":"riaanvdl","id":17537977,"node_id":"MDQ6VXNlcjE3NTM3OTc3","avatar_url":"https://avatars3.githubusercontent.com/u/17537977?v=4","gravatar_id":"","url":"https://api.github.com/users/riaanvdl","html_url":"https://github.com/riaanvdl","followers_url":"https://api.github.com/users/riaanvdl/followers","following_url":"https://api.github.com/users/riaanvdl/following{/other_user}","gists_url":"https://api.github.com/users/riaanvdl/gists{/gist_id}","starred_url":"https://api.github.com/users/riaanvdl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riaanvdl/subscriptions","organizations_url":"https://api.github.com/users/riaanvdl/orgs","repos_url":"https://api.github.com/users/riaanvdl/repos","events_url":"https://api.github.com/users/riaanvdl/events{/privacy}","received_events_url":"https://api.github.com/users/riaanvdl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-19T03:28:15Z","updated_at":"2018-08-19T03:28:15Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI am using a custom data template for my cells but when clicking on the header im getting an exception.\r\nHere is my Template:\r\n```\r\n\r\n        private DataTemplate CreateQtyTemplate(string bindingName)\r\n        {\r\n            return new DataTemplate(() =>\r\n            {\r\n                ContentView cv = new ContentView();\r\n                Label lblQty = new Label();\r\n                lblQty.FontFamily = FontFamily.Roman;\r\n                lblQty.FontSize = FontSize.Large;\r\n                lblQty.HorizontalOptions = LayoutOptions.CenterAndExpand;\r\n                lblQty.VerticalOptions = LayoutOptions.CenterAndExpand;\r\n                lblQty.SetBinding(Label.TextProperty, bindingName);\r\n\r\n                lblQty.SetBinding(Label.TextColorProperty, new Binding(\"QtyComparison\", BindingMode.Default,\r\n        new QtyColorConverter(), null));\r\n\r\n                cv.Content = lblQty;\r\n                return cv;\r\n            });\r\n        }\r\n```\r\n\r\nAnd here is my column definition:\r\n\r\n```\r\n            var colRecQty = new DataGridColumn\r\n            {\r\n                Title = Strings.ReceivedQuantity,\r\n                CellTemplate = CreateQtyTemplate(\"CountQty\")\r\n            };\r\n```"}}
{"actor":{"display_login":"riaanvdl"}}