{"id":28773,"date":"2022-07-05T13:14:48","date_gmt":"2022-07-05T11:14:48","guid":{"rendered":"https:\/\/help.qualiware.it\/qw-help\/?p=28773"},"modified":"2023-12-08T20:33:37","modified_gmt":"2023-12-08T19:33:37","slug":"griglia-e-vistadati-allineamento-al-centro-o-a-destra-del-contenuto-di-una-colonna","status":"publish","type":"post","link":"https:\/\/help.qualiware.it\/qw-help\/griglia-e-vistadati-allineamento-al-centro-o-a-destra-del-contenuto-di-una-colonna\/","title":{"rendered":"Griglia e VistaDati: allineamento al centro o a destra del contenuto di una colonna (vecchio layout)"},"content":{"rendered":"<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">' Il seguente snippet deve essere inserito nell'EventoRender e consente di allineare a destra o al centro il contenuto di una colonna\r\n' N.B. si pu\u00f2 utilizzare solo se NuovoLayout=false\r\n\r\nform.FindControl(\"Grid1\").columns.fromkey(\"CUSTOM1\").cssClass=\"WebDataGridRight\" ' Griglia, a destra\r\nform.FindControl(\"Grid1\").columns.fromkey(\"CUSTOM1\").cssClass=\"WebDataGridCenter\" ' Griglia, al centro&nbsp;\r\nform.FindControl(\"DataView1\").columns.fromkey(\"CODICE\").cssClass=\"WebDataGridRight\" ' Vista dati, a destra\r\nform.FindControl(\"DataView1\").columns.fromkey(\"CODICE\").cssClass=\"WebDataGridCenter\" ' Vista dati, al centro\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&#8216; Il seguente snippet deve essere inserito nell&#8217;EventoRender e consente di allineare a destra o al centro il contenuto di una colonna &#8216; N.B. si pu\u00f2 utilizzare solo se NuovoLayout=false form.FindControl(&#8220;Grid1&#8221;).columns.fromkey(&#8220;CUSTOM1&#8243;).cssClass=&#8221;WebDataGridRight&#8221; &#8216; Griglia, a destra form.FindControl(&#8220;Grid1&#8221;).columns.fromkey(&#8220;CUSTOM1&#8243;).cssClass=&#8221;WebDataGridCenter&#8221; &#8216; Griglia, al centro&nbsp; form.FindControl(&#8220;DataView1&#8221;).columns.fromkey(&#8220;CODICE&#8221;).cssClass=&#8221;WebDataGridRight&#8221; &#8216; Vista dati, a destra form.FindControl(&#8220;DataView1&#8221;).columns.fromkey(&#8220;CODICE&#8221;).cssClass=&#8221;WebDataGridCenter&#8221; &#8216; Vista dati, al centro<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"ngg_post_thumbnail":0,"footnotes":""},"categories":[65],"tags":[71],"acf":[],"_links":{"self":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/28773"}],"collection":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/comments?post=28773"}],"version-history":[{"count":1,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/28773\/revisions"}],"predecessor-version":[{"id":35118,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/28773\/revisions\/35118"}],"wp:attachment":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/media?parent=28773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/categories?post=28773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/tags?post=28773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}