{"id":4340,"date":"2014-03-30T09:55:22","date_gmt":"2014-03-30T09:55:22","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/datagrid-edit-the-selected-row-when-a-button-is-clicked-collection-of-common-programming-errors\/"},"modified":"2014-03-30T09:55:22","modified_gmt":"2014-03-30T09:55:22","slug":"datagrid-edit-the-selected-row-when-a-button-is-clicked-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/datagrid-edit-the-selected-row-when-a-button-is-clicked-collection-of-common-programming-errors\/","title":{"rendered":"DataGrid &#8211; Edit the selected row when a button is clicked-Collection of common programming errors"},"content":{"rendered":"<p>I have a very simple DataGrid with 2 columns, some thing like this:<\/p>\n<pre><code>\n    \n        \n        \n    \n\n<\/code><\/pre>\n<p>What Im trying to do is to activate the edition of the selected row when the user clicks a button. So far I&#8217;ve been unable to find any example of how to do this. I already tried 6 or 7 different approaches but non works. Does any one has a clue how to do this?<\/p>\n<p>How do you get the selected row (NOT selectedItem) of a DataGrid and how can you:<\/p>\n<ul>\n<li>Change the ItemRenderEditor or ItemRenderer on the fly of just that row.<\/li>\n<li>Or enable the edition of that specific row without clicking it.<\/li>\n<\/ul>\n<p>This are the questions that I&#8217;ve been unable to answer<\/p>\n<p>Help will be greatly appreciated.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have a very simple DataGrid with 2 columns, some thing like this: What Im trying to do is to activate the edition of the selected row when the user clicks a button. So far I&#8217;ve been unable to find any example of how to do this. I already tried 6 or 7 different approaches [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4340","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4340","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4340"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4340\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4340"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4340"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4340"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}