{"id":35145,"date":"2023-12-09T00:30:57","date_gmt":"2023-12-08T23:30:57","guid":{"rendered":"https:\/\/help.qualiware.it\/qw-help\/?p=35145"},"modified":"2023-12-09T01:21:29","modified_gmt":"2023-12-09T00:21:29","slug":"griglia-e-vistadati-applicazione-di-uno-stile-differente-ad-una-riga-nuovo-layout","status":"publish","type":"post","link":"https:\/\/help.qualiware.it\/qw-help\/griglia-e-vistadati-applicazione-di-uno-stile-differente-ad-una-riga-nuovo-layout\/","title":{"rendered":"Griglia e VistaDati: applicazione di uno stile differente ad una riga (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 differente ad una riga di una griglia\r\n' N.B. pu\u00f2 essere utilizzato solo se NuovoLayout=true\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<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&#8216; Il seguente snippet deve essere inserito nell&#8217;EventoRender e consente di applicare uno stile differente ad una riga di una griglia &#8216; N.B. pu\u00f2 essere utilizzato solo se NuovoLayout=true dim i as integer for i=1 to form.FindControl(&#8220;Dataview1&#8221;).RowCount() if i mod 2=1 form.FindControl(&#8220;Dataview1&#8243;).SetRowStyle(i,&#8221;background-color:orange !important&#8221;) Else form.FindControl(&#8220;Dataview1&#8243;).SetRowStyle(i,&#8221;background-color:yellow !important&#8221;) End If Next<\/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\/35145"}],"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=35145"}],"version-history":[{"count":3,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/35145\/revisions"}],"predecessor-version":[{"id":35158,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/35145\/revisions\/35158"}],"wp:attachment":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/media?parent=35145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/categories?post=35145"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/tags?post=35145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}