<!DOCTYPE html><html><head><title>DataGridCellMerging</title><metacharset="UTF-8" /><linkrel="shortcut icon"href="https://static.infragistics.com/xplatform/images/browsers/wc.png" ><linkrel="stylesheet"href="https://fonts.googleapis.com/icon?family=Material+Icons" /><linkrel="stylesheet"href="https://fonts.googleapis.com/css?family=Kanit&display=swap" /><linkrel="stylesheet"href="https://fonts.googleapis.com/css?family=Titillium Web" /><linkrel="stylesheet"href="https://static.infragistics.com/xplatform/css/samples/shared.v8.css"type="text/css" /></head><body><divid="root"><divclass="container sample"><divclass="options horizontal"><spanclass="options-label">Merged Cell Mode: </span><selectid="selectionDropBox"class="options-label"><option>Always</option><option>Never</option><option>OnlyWhenSorted</option></select></div><igc-data-gridid="grid"width="100%"height="100%"merged-cell-mode="Always"auto-generate-columns="false"is-column-options-enabled="true"><igc-text-columnfield="OrderID"header-text="ID"width="*>90"horizontal-alignment="center"></igc-text-column><igc-date-time-columnfield="OrderDate"header-text="Order Date"width="*>130"></igc-date-time-column><igc-text-columnfield="ShipName"header-text="Name"width="*>185"></igc-text-column><igc-numeric-columnfield="Freight"header-text="Freight"width="*>115"positive-prefix="$"min-fraction-digits="2"></igc-numeric-column><igc-date-time-columnfield="ShippedDate"header-text="Ship Date"width="*>125"horizontal-alignment="right"></igc-date-time-column><igc-text-columnfield="ShipAddress"header-text="Shipping Address"width="*>250"></igc-text-column><igc-text-columnfield="ShipCity"header-text="City"width="*>130"></igc-text-column><igc-text-columnfield="ShipCountry"header-text="Country"width="*>110"></igc-text-column></igc-data-grid></div></div><!-- This script is needed only for parcel and it will be excluded for webpack -->
<% if (false) { %><scriptsrc="src/index.ts"></script><% } %>
</body></html>html
/* shared styles are loaded from: *//* https://static.infragistics.com/xplatform/css/samples */css
このサンプルが気に入りましたか? 完全な Ignite UI for Web Componentsツールキットにアクセスして、すばやく独自のアプリの作成を開始します。無料でダウンロードできます。
概要
Web Components データ グリッドでのセルの結合は、Web Components グリッド全体または個々の列の mergedCellMode オプションを使用して構成できます。このプロパティは、以下にリストされている次のオプションのいずれかに設定できます: