# Wijmo_Grid_Immutable.Datachangeeventargs

## Content

<div class="content__tsd">
						<div style="display:flex;justify-content:space-between;align-items:center">
							<h1>
								DataChangeEventArgs Class
							</h1>
						</div>
						<section class="tsd-comment">
							<div class="tsd-comment">
								<div class="lead">
									<p>Provides data for the <a href="wijmo_grid_immutable.immutabilityprovider.html#datachanged">ImmutabilityProvider.dataChanged</a> event.</p>
								</div>
							</div>
						</section>
						<section class="tsd-hierarchy">
							<h3>Heirarchy</h3>
							<ul class="tsd-hierarchy">
								<li>
									<a href="wijmo.eventargs.html" class="tsd-signature-type">EventArgs</a>
									<ul class="tsd-hierarchy">
										<li>
											<span class="target">DataChangeEventArgs</span>
										</li>
									</ul>
								</li>
							</ul>
						</section>
						<section class="tsd-index-group">
							<section class="tsd-index-panel">
								<div class="tsd-index-content">
									<section class="tsd-index-section ">
										<div class="title">
											<div class="gc_api_tree-item_icon_img_wrapper">
												<div class="gc_api_tree-item_icon_img" data-expand="true">
												</div>
											</div>
											<h3>
												Constructors
											</h3>
										</div>
										<ul class="tsd-index-list">
											<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="wijmo_grid_immutable.datachangeeventargs.html#constructor" class="tsd-kind-icon">constructor</a></li>
										</ul>
									</section>
									<section class="tsd-index-section ">
										<div class="title">
											<div class="gc_api_tree-item_icon_img_wrapper">
												<div class="gc_api_tree-item_icon_img" data-expand="true">
												</div>
											</div>
											<h3>
												Properties
											</h3>
										</div>
										<ul class="tsd-index-list">
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_grid_immutable.datachangeeventargs.html#action" class="tsd-kind-icon">action</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_grid_immutable.datachangeeventargs.html#itemindex" class="tsd-kind-icon">item<wbr>Index</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_grid_immutable.datachangeeventargs.html#newitem" class="tsd-kind-icon">new<wbr>Item</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo_grid_immutable.datachangeeventargs.html#olditem" class="tsd-kind-icon">old<wbr>Item</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static"><a href="wijmo_grid_immutable.datachangeeventargs.html#empty" class="tsd-kind-icon">empty</a></li>
										</ul>
									</section>
								</div>
							</section>
						</section>
						<section class="tsd-panel-group tsd-member-group ">
							<h2>Constructors</h2>
							<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class">
								<a name="constructor" class="tsd-anchor"></a>
								<h3>constructor</h3>
								<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
									<li class="tsd-signature tsd-kind-icon">new <wbr>Data<wbr>Change<wbr>Event<wbr>Args<span class="tsd-signature-symbol">(</span>action<span class="tsd-signature-symbol">: </span><a href="../enums/wijmo_grid_immutable.datachangeaction.html" class="tsd-signature-type">DataChangeAction</a>, oldItem<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, newItem<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, itemIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="wijmo_grid_immutable.datachangeeventargs.html" class="tsd-signature-type">DataChangeEventArgs</a></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Initializes a new instance of the <a href="wijmo_grid_immutable.datachangeeventargs.html">DataChangeEventArgs</a> class.</p>
											</div>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>action: <a href="../enums/wijmo_grid_immutable.datachangeaction.html" class="tsd-signature-type">DataChangeAction</a></h5>
												<div class="tsd-comment">
													<div class="lead">
														<p>Type of action that caused the event to fire.</p>
													</div>
												</div>
											</li>
											<li>
												<h5>oldItem: <span class="tsd-signature-type">any</span></h5>
												<div class="tsd-comment">
													<div class="lead">
														<p>Original item that was removed or changed.</p>
													</div>
												</div>
											</li>
											<li>
												<h5>newItem: <span class="tsd-signature-type">any</span></h5>
												<div class="tsd-comment">
													<div class="lead">
														<p>New item that was added or changed.</p>
													</div>
												</div>
											</li>
											<li>
												<h5>itemIndex: <span class="tsd-signature-type">any</span></h5>
												<div class="tsd-comment">
													<div class="lead">
														<p>Index of the item.</p>
													</div>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <a href="wijmo_grid_immutable.datachangeeventargs.html" class="tsd-signature-type">DataChangeEventArgs</a></h4>
									</li>
								</ul>
							</section>
						</section>
						<section class="tsd-panel-group tsd-member-group ">
							<h2>Properties</h2>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="action" class="tsd-anchor"></a>
								<h3>action</h3>
								<div class="tsd-signature tsd-kind-icon">action<span class="tsd-signature-symbol">:</span> <a href="../enums/wijmo_grid_immutable.datachangeaction.html" class="tsd-signature-type">DataChangeAction</a></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets the action that caused the event to fire.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="itemindex" class="tsd-anchor"></a>
								<h3>itemIndex</h3>
								<div class="tsd-signature tsd-kind-icon">item<wbr>Index<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets an index of the item affected by the change in the
											<a href="wijmo_grid_immutable.immutabilityprovider.html#itemssource">ImmutabilityProvider.itemsSource</a> array, depending on the
										<a href="wijmo_grid_immutable.datachangeeventargs.html#action">action</a>:</p>
										<ul>
											<li>Remove: the removed item index</li>
											<li>Add: the added item index</li>
											<li>Change: the changed item index</li>
										</ul>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="newitem" class="tsd-anchor"></a>
								<h3>newItem</h3>
								<div class="tsd-signature tsd-kind-icon">new<wbr>Item<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets an item with changes, depending on the
										<a href="wijmo_grid_immutable.datachangeeventargs.html#action">action</a>:</p>
										<ul>
											<li>Remove: a null value.</li>
											<li>Add: the new added item</li>
											<li>Change: the cloned item with modifications</li>
										</ul>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="olditem" class="tsd-anchor"></a>
								<h3>oldItem</h3>
								<div class="tsd-signature tsd-kind-icon">old<wbr>Item<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets an existing item affected by the change, depending on the
										<a href="wijmo_grid_immutable.datachangeeventargs.html#action">action</a>:</p>
										<ul>
											<li>Remove: the removed item from the <a href="wijmo_grid_immutable.immutabilityprovider.html#itemssource">ImmutabilityProvider.itemsSource</a> array.</li>
											<li>Add: a null value.</li>
											<li>Change: the original item from the <a href="wijmo_grid_immutable.immutabilityprovider.html#itemssource">ImmutabilityProvider.itemsSource</a> array
												(not modified, the cloned item with the modifications is in the
											<a href="wijmo_grid_immutable.datachangeeventargs.html#newitem">newItem</a> property).</li>
										</ul>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static">
								<a name="empty" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagStatic">Static</span> empty</h3>
								<div class="tsd-signature tsd-kind-icon">empty<span class="tsd-signature-symbol">:</span> <a href="wijmo.eventargs.html" class="tsd-signature-type">EventArgs</a></div>
								<aside class="tsd-sources">
									<p>Inherited from <a href="wijmo.eventargs.html">EventArgs</a>.<a href="wijmo.eventargs.html#empty">empty</a></p>
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Provides a value to use with events that do not have event data.</p>
									</div>
								</div>
							</section>
						</section>
					</div>