10.02.2014 Views

Beginning Ajax With ASP.NET (2006).pdf

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Atlas Client Script<br />

Figure 10-10<br />

Sys.Data.DataTable<br />

The Sys.Data.DataTable class provides all information for integration with the System.Data<br />

.DataTable. The DataTable exposes the following members that may be of interest.<br />

Members<br />

get_columns()<br />

get_keys()<br />

get_isDirty()<br />

get_length()<br />

add()<br />

clear()<br />

getChanges()<br />

getColumn()<br />

getItem()<br />

remove()<br />

dispose()<br />

Description<br />

This method will return an array of DataColumns within the DataTable.<br />

This method will return an array of DataColumns that contain various<br />

keys within the DataTable.<br />

This method will return a boolean indicating whether or not updates have<br />

been made on the DataTable object.<br />

This method will return the number of rows within the DataTable.<br />

The add method will allow the addition of a DataRow.<br />

The clear() method will clear the contents of the DataTable.<br />

The getChanges() method will provide a set of DataRows that have<br />

changed.<br />

The getColumn() method will provide the specified column.<br />

The getItem() method will provide the specified row. This method is<br />

very important.<br />

The remove() will remove the specified row.<br />

Performs the standard dispose mechanism.<br />

271

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!