{"id":35125,"date":"2023-12-08T23:54:45","date_gmt":"2023-12-08T22:54:45","guid":{"rendered":"https:\/\/help.qualiware.it\/qw-help\/?p=35125"},"modified":"2023-12-09T17:58:33","modified_gmt":"2023-12-09T16:58:33","slug":"griglia-e-vistadati-modifica-font-e-altezza-intestazione-e-righe-nuovo-layout","status":"publish","type":"post","link":"https:\/\/help.qualiware.it\/qw-help\/griglia-e-vistadati-modifica-font-e-altezza-intestazione-e-righe-nuovo-layout\/","title":{"rendered":"Griglia e VistaDati: modifica stile intestazione e righe (nuovo layout)"},"content":{"rendered":"<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"visualbasic\">' Il seguente snippet deve essere inserito nell'EventoRender e consente di applicare uno stile specifico all'intestazione e alle righe di una griglia\r\n' N.B. utilizzabile solo con NuovoLayout=true\r\n\r\nform.FindControl(\"Dataview1\").SetHeaderStyle(\"text-align:center !important;background-color:red !important;font-size:11pt !important\") ' Notare l'attributo \"important\", da inserire per forzare l'utilizzo dell'attributo\r\n\r\ndim i as integer\r\nfor i=1 to form.FindControl(\"Dataview1\").RowCount()\r\n\tif i mod 2=1\r\n\t\tform.FindControl(\"Dataview1\").SetRowStyle(i,\"background-color:orange !important\")\r\n\tElse\r\n\t\tform.FindControl(\"Dataview1\").SetRowStyle(i,\"background-color:yellow !important\")\r\n\tEnd If\r\nNext\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&#8216; Il seguente snippet deve essere inserito nell&#8217;EventoRender e consente di applicare uno stile specifico all&#8217;intestazione e alle righe di una griglia &#8216; N.B. utilizzabile solo con NuovoLayout=true form.FindControl(&#8220;Dataview1&#8221;).SetHeaderStyle(&#8220;text-align:center !important;background-color:red !important;font-size:11pt !important&#8221;) &#8216; Notare l&#8217;attributo &#8220;important&#8221;, da inserire per forzare l&#8217;utilizzo dell&#8217;attributo dim i as integer for i=1 to form.FindControl(&#8220;Dataview1&#8221;).RowCount() if i mod 2=1 form.FindControl(&#8220;Dataview1&#8221;).SetRowStyle(i,&#8221;background-color:orange&hellip;<\/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\/35125"}],"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=35125"}],"version-history":[{"count":5,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/35125\/revisions"}],"predecessor-version":[{"id":35175,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/35125\/revisions\/35175"}],"wp:attachment":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/media?parent=35125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/categories?post=35125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/tags?post=35125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}