Aspose.Cells.GridWeb NOTE: This class is now obsolete. This class will be removed after 6 months since Aug. 2014. Aspose apologizes for any inconvenience you may have experienced. Represents an cell's attachment object like Comment, Hyperlink, etc. Gets the relative cell of the object. Hyperlink has two action type: UrlLink and CellCommand. UrlLink type hyperlink is an anchor in a cell, click it will navigate to another page or open a new browser window. CellCommand type hyperlink is an command button in a cell, click it will generate a server side event. NOTE: This class is now obsolete. please use GridHyperlink Instead. This class will be removed after 6 months since Aug. 2014. Aspose apologizes for any inconvenience you may have experienced. Url link. An anchor in a cell. Cell command button. just simple image Gets or sets the URL string. Gets or sets the displayed text of the hyperlink. Gets or sets the tooltip of the hyperlink. Gets or sets the hyperlink's image url. If sets to null or empty string, the hyperlink will only display it's text. Gets or sets the Cell Command name. Gets or sets the hyperlink's action type. It may be ActionTpye.UrlLink or ActionType.CellCommand. The UrlLink Type means that the hyperlink is a link to a web page or a mail receipt. For example: "http://www.aspose.com" or "mailto:admin@aspose.com". The CellCommand Type means that the hyperlink will fire a CellCommand event, and you may handle this event. Indicates whether to discard user input at client browser when user click this CellCommand hyperlink. Could be used as an "undo" action. Gets the range of hyperlink. NOTE: This class is now obsolete. please use GridHyperlinkCollection Instead. This class will be removed after 6 months since Aug. 2014. Aspose apologizes for any inconvenience you may have experienced. Gets the cell's Hyperlink object. If there is no Hyperlink of the cell, returns null. The cell object. Clears all hyperlinks. NOTE: This class is now obsolete. This class will be removed after 6 months since Aug. 2014. you can use GridWorksheet AddAutoFilter/FilterString for autofilter /custom filter settings Aspose apologizes for any inconvenience you may have experienced. Summary description for RowFilter. Specifies a custom filter. Header row index. An instance of ICustomFilter. Builds criteria string from auto filter settings. Filters rows using criteria string. Filtered indexes list of rows. Clears all filter settings and display all rows. Enables auto filtering. The HeaderRow will display dropdown buttons to let user select the column's value to be filtered. The start row number of the filter range. The end row number of the filter range. If this value is set to -1, the last row number of the sheet is used. The header row number which will display filter dropdown buttons. The filter criteria string. The filter criteria string. below are the criteria string examples: CELL0 = 12.3 CELL1 = "ABC" AND(CELL0 = 123, CELL1 = "ABC") OR(CELL0 = 123, CELL1 = "ABC") CELL0 = B1 + 4 Summary description for ICustomFilter. Provides a value list to the specified column for filtering. WebWorksheet object. Column index. Filters data by specified column and filter index. WebWorksheet object. Column index. Filter index. Represents the session mode of the grid. this is for .net use only Uses the system session to store/recover the grid's sheet data automatically. Uses the page's viewstate to store/recover the grid's sheet data automatically. Uses the LoadCustomData event to load the grid's sheet data manually. And uses the SheetDataUpdated event to save the grid's sheet data. Represents sorting orientation SortOrientation.SortTopToBottom represents sorting datas from top to bottom and exchanging data row by row. SortOrientation.SortLeftToRight represents sorting datas from left to right and exchanging data column by column. Represents sorting datas from top to bottom and exchanging data row by row. Represents sorting datas from left to right and exchanging data column by column. Represents what order the data sort by. Sorts by ascending Sorts by descending NOTE: This class is now obsolete. please use GridCell Instead. This class will be removed after 6 months since Aug. 2014. Aspose apologizes for any inconvenience you may have experienced. Sets the cell's value with a string value and set cell format by this value. Input value. Creates a validation object for a cell. Validation type. Whether the cell value is required. [C#] Validation v = cell1.CreateValidation(ValidationType.CustomExpression, true); // Sets to number validation expression. v.RegEx = "\\d+"; [Visual Basic] Dim v As Validation = cell1.CreateValidation(ValidationType.CustomExpression,True) ' Sets to number validation expression. v.RegEx = "\\d+" Puts a DateTime value into the cell. Input value Puts a String value into the cell. Input value Puts an object value into the cell.same as setValue(Object param_object) input value Puts a int value into the cell. Input value Puts a value into the cell, if appropriate the value will be converted to other data type and cell's number format will be reset. Input value True: converted to other data type if appropriate. True: set the number format to cell's style when converting to other data type Puts a string value into the cell and converts the value to other data type if appropriate. Input value True: converted to other data type if appropriate. Puts a boolean value into the cell. Input value Puts a double value into the cell. Input value Gets the column number of the cell. Gets the row number of the cell. Gets or sets whether the cell is readonly.this is an extended attribute of GridWeb ,it will not keep in actual excel file Gets or sets the formula string of the cell. Returns null when the cell doesn't contain a formula. [C#] cell.Formula = "=SUM(A1:C3) + E6*2"; [Visual Basic] cell.Formula = "=SUM(A1:C3) + E6*2" Gets the unformatted string value. NOTE: This class is now obsolete. please use GridCellArea Instead. This class will be removed after 6 months since Aug. 2014. Aspose apologizes for any inconvenience you may have experienced. Gets or sets the start row of this area. Gets or sets the end row of this area. Gets or sets the start column of this area. Gets or sets the end column of this area. Test if the object equals to another WebCellArea object. Get the hashcode. NOTE: This class is now obsolete. please use GridCells Instead. This class will be removed after 6 months since Aug. 2014. Aspose apologizes for any inconvenience you may have experienced. Gets the cells enumerator The cells enumertor Clears contents of a range. Start row index. Start column index. End row index. End column index. Gets the column caption. If the caption is not set, returns empty string. Column index. The column caption. If the caption is not set, returns empty string. Sets the caption for the column.please note this is an extension attribute and can not keep in excel file Column index. The column caption. Pass null or empty string if you want cancel the caption. Gets the row caption. If the caption is not set, returns empty string. Row index. The row caption. If the caption is not set, returns empty string. Sets the caption for the row. Row index. The row caption. Pass null or empty string if you want cancel the caption. Sets the width of the specified column.the accepted width type is Point,Pixel or Inch Column index. Width of Column . To hide a column, sets column width to zero. Gets the width of the specified column Column index Width of column Only support UnitType.Pixel unit type. Gets the height of a specified row. Row index Height of row Only support UnitType.Pixel unit type. Sets the height of the specified row.the accepted width type is Point,Pixel or Inch Row index. Height of row.In unit of point It should be between 0 and 409.5. To hide a row, sets row height to zero. Inserts a new column into the worksheet. Column index. Deletes a column. Column index. Inserts a new row into the worksheet. Row index. Inserts multiple rows into the worksheet. Row index. Number of rows to be inserted. Deletes a row. Row index. Deletes a number of rows. This method is much faster than DeleteRow when doing a batch row deleting. Unmerges a specified range of merged cells. First row of this range(zero based) First column of this range(zero based) Number of rows(one based) Number of columns(one based) Sets the style to a specified range of cells. First row of this range(zero based) First column of this range(zero based) Number of rows(one based) Number of columns(one based) The style object to be set Sets the style to a specified range of cells. The range of cells' names, like "A1:D6" The style object to be set Get hidden status of a specified row. Row index. Hidden status of row. Set hidden status of a specified row. Row index. Hidden status of row. Sorts the datas ascend top to bottom in a range of a WebWorksheet by specified column index. The row number of the first cell to sort. The column number of the first cell to sort. Number of rows to be imported. Number of columns to be imported. The column index that specifis the sort column. [C#] GridWeb1.WebWorksheets[0].Cells.Sort(1,0,25,6,3); [VB] GridWeb1.WebWorksheets(0).Cells.Sort(1,0,25,6,3) Sorts the datas ascend top to bottom in a range of a WebWorksheet by specified column index. The row number of the first cell to sort. The column number of the first cell to sort. Number of rows to be imported. Number of columns to be imported. The column(or row) index that specifis the sort column(or row). If sort orientation is top to bottom, the index represents column index. If sort orientation is left to right, the index represents row index. The sort order:Ascending or Descending The sort orientation: top to bottom or left to right. Indicates whether the sort data is case sensitive if the data is string. [C#] GridWeb1.WebWorksheets[0].Cells.Sort(0,1,4,14,3,SortOrder.Ascending,SortOrientation.SortLeftToRight,true) [VB] GridWeb1.WebWorksheets(0).Cells.Sort(0,1,4,14,3,SortOrder.Ascending,SortOrientation.SortLeftToRight,True) Sorts the datas ascend top to bottom in a range of a WebWorksheet by some field that are specifed by column indexes array. The row number of the first cell to sort. The column number of the first cell to sort. Number of rows to be imported. Number of columns to be imported. The column indexes array that specifies the data sorted by. [C#] int[] indexes = new int[3]; indexes[0] = 0; indexes[1] = 2; indexes[2] = 3; GridWeb1.WebWorksheets[0].Cells.Sort(1,0,25,6,indexes); [VB] Dim indexes() As Integer = New Integer(3) {} indexes(0) = 0 indexes(1) = 2 indexes(2) = 3 GridWeb1.WebWorksheets(0).Cells.Sort(1,0,25,6,indexes) Sorts the datas ascend in a range of a WebWorksheet by some field that are specifed by indexes array. If you use this method to sort a block of data, please be sure that length of the parameter indexes equals length of the parameter orders. The row number of the first cell to sort. The column number of the first cell to sort. Number of rows to be imported. Number of columns to be imported. The column(or row) index that specifis the sort column(or row). If sort orientation is top to bottom, the index represents column index. If sort orientation is left to right, the index represents row index. The sort order:Ascending or Descending The sort orientation: top to bottom or left to right. Indicates whether the sorting is case sensitive. [C#] int[] indexes = new int[3]; indexes[0] = 0; indexes[1] = 1; indexes[2] = 3; SortOrder[] orders = new SortOrder[3]; orders[0] = SortOrder.Ascending; orders[1] = SortOrder.Descending; orders[2] = SortOrder.Descending; GridWeb1.WebWorksheets[0].Cells.Sort(0,1,4,14,indexes,orders,SortOrientation.SortLeftToRight,false); [VB] Dim indexes() As Integer = New Integer(3) {} indexes(0) = 0 indexes(1) = 1 indexes(2) = 3 Dim orders() As SortOrder = New SortOrder(3) {} orders(0) = SortOrder.Ascending orders(1) = SortOrder.Descending orders(2) = SortOrder.Descending GridWeb1.WebWorksheets(0).Cells.Sort(0,1,4,14,indexes,orders,SortOrientation.SortLeftToRight,False) Sets borders for a cells range. The first row number of the range(zero based). The first column number of the range(zero based). The rows number. The columns number. The border position. The border style. [C#] GridWeb1.WebWorksheets[0].Cells.SetBorders(0, 0, 5, 8, SetBorderPosition.Outline, borderStyle1); [VB] GridWeb1.WebWorksheets(0).Cells.SetBorders(0, 0, 5, 8, SetBorderPosition.Outline, borderStyle1) Sets a row to readonly so user can't delete it from client side. this is extended method of GridWeb specifically,it will not keep and take affect in actual excel file row index. true or false. Sets a column to readonly so user can't delete it from client side. this is extended method of GridWeb specifically,it will not keep and take affect in actual excel file column index. true or false. Gets if a row is readonly. this is extended method of GridWeb specifically,it will not keep and take affect in actual excel file row index. If readonly returns true. Gets if a column is readonly. this is extended method of GridWeb specifically,it will not keep and take affect in actual excel file column index. If readonly returns true. Gets the outline level of the row. row index. the outline level. Sets the outline level of the row. row index. outline level. Sets the outline level of the row. row index. outline level. isHidden. Gets column index according to column name. Column name. Column index. Gets column name according to column index. Column index. Name of column. Gets cell name according to its row and column indexes. Row index. Column index. Name of cell. Gets the cell row and column indexes according to its name Name of cell. Output row index Output column index Exports data in the collection to a two-dimension array object. The row number of the first cell to export out. The column number of the first cell to export out. Number of rows to be exported Number of columns to be exported Exported cell value array object. Exports data in the Cells collection of a WebWorksheet to a new DataTable object The row number of the first cell to export out. The column number of the first cell to export out. Number of rows to be imported. Number of columns to be imported. Indicates whether the data in the first row are exported as the column name of the DataTable True if a row in Excel file represents a row in DataTable. False if a column in Excel file represents a row in DataTable. Exported DataTable object. Gets item within the worksheet The zero based index of the element. The element at the specified index. This is the indexer for the Cells class. Gets the cell element at the specified index. Gets the element at the specified cell row index and column index. Row index. Column index. The object. [C#] Cells cells = excel.Worksheets[0].Cells; Cell cell = cells[0, 0]; //Gets the cell at "A1" [Visual Basic] Dim cells As Cells = excel.WorkSheets(0).Cells Dim cell As Cell = cells(0,0) 'Gets the cell at "A1" Gets the element at the specified cell name. Cell name,including its column letter and row number, for example A5. A object [C#] Cells cells = excel.Worksheets[0].Cells; Cell cell = cells["A1"]; //Gets the cell at "A1" [Visual Basic] Dim cells As Cells = excel.Worksheets(0).Cells Dim cell As Cell = cells("A1") 'Gets the cell at "A1" Gets the collection of merged cells. In this collection, each item is a structure which represents an area of merged cells. Min row number of cell which contains data or style. Min column number of cell which contains data or style. Gets or sets the default column width in the worksheet,in unit of characters. Gets or sets the default row height in this worksheet,in unit of points. Gets the number of cells. NOTE: This class is now obsolete. please use GridComment Instead. This class will be removed after 6 months since Aug. 2014. Aspose apologizes for any inconvenience you may have experienced. NOTE: This class is now obsolete. please use GridCommentCollection Instead. This class will be removed after 6 months since Aug. 2014. Aspose apologizes for any inconvenience you may have experienced. Represents the interface that intend to handle cell error events. void handleCellEvent(Object sender, GridCellException ex, OnErrorActionQuery query); The source of the event. The cell operation error. can get onerror action type information. Provides data for cell events. The cell. The argument of the event. Represents the interface that intend to handle cell events. void handleCellEvent(Object sender, CellEventArgs e); The source grid of the event. The event argument. The e.Cell is the cell who fires the event. The e.Argument contains the argument of the event. Represents the method that intend to handle cell events. same as CellEventHandler interface,but return string result String handleCellEvent(Object sender, CellEventArgs e); The source grid of the event. The event argument. The e.Cell is the cell who fires the event. The e.Argument contains the argument of the event. string value Represents the interface that intend to handle Custom Command events. void handleCellEvent(Object sender, String command); The source grid of the event. The command string user send. Represents a cell object. Returns a string represents the current Cell object. Copies data from a source cell. Source object. Puts a DateTime value into the cell. Input value Puts a String value into the cell. Input value Puts an object value into the cell.same as setValue(Object param_object) input value Puts a int value into the cell. Input value Puts a value into the cell, if appropriate the value will be converted to other data type and cell's number format will be reset. Input value True: converted to other data type if appropriate. True: set the number format to cell's style when converting to other data type Puts a string value into the cell and converts the value to other data type if appropriate. Input value True: converted to other data type if appropriate. Puts a boolean value into the cell. Input value Puts a double value into the cell. Input value Represents if the specified cell contains formula. Set the formula and the value of the formula. The formula. The value of the formula. copy the style and set the style for the cell The source style. Style object. sets the custom format, null or empty string means no custom format. the custom string presentation Sets the cell's value with a string value and set cell format by this value. Input value. set the display format of numbers and dates the value of ther numbertype,see GridTableItemStyle.NumberType Checks if a formula can properly evaluate a result. Only applies to formula cell. Indicates wether this cell contains an external link. Only applies when the cell is a formula cell. Gets the width of the value in unit of pixels. Sets borders(top,bottom,left and right) for a cell,all the borders have same borderstyle. The border style. Creates a validation object for a cell. Validation type. Whether the cell value is required. [C#] Validation v = cell1.CreateValidation(GridValidationType.CustomExpression, true); // Sets to number validation expression. v.RegEx = "\\d+"; [Visual Basic] Dim v As Validation = cell1.CreateValidation(GridValidationType.CustomExpression,True) ' Sets to number validation expression. v.RegEx = "\\d+" Removes the validation object of the cell. Creates a comment object for a cell. comment note. comment author. whether the comment is visible. GridComment object Removes the comment object of the cell. Get comment object on this cell Gets the name of the cell. For example: A1, F102. Gets the value contained in this cell. Possible type:

null,

Boolean,

DateTime,

Double,

Integer

String.

return the cell value type ,the meaning can see GridCellValueType.java Gets or sets a formula of the . A formula string always begins with an equal sign (=). And please always use comma(,) as parameters delimeter, such as "=SUM(A1, E1, H2)".

User can set any formula in Workbook designer file. Aspose.Cells will keep all the formulas. If user use this property to set a formula to a cell, major part of Workbook built-in functions is supported. And more is coming. If you have any special need for Workbook built-in functions, please let us know.
[C#] cell.Formula = "=SUM(A1:C3) + E6*2"; [Visual Basic] cell.Formula = "=SUM(A1:C3) + E6*2"
Gets the string value contained in the cell. Gets the copy of cell style. set the style for the cell. Style object. Gets the DateTime value contained in the cell. Gets row number (zero based) of the cell. Cell row number Gets column number (zero based) of the cell. Gets the formatted string value of this cell. Gets the integer value contained in the cell. Gets the double value contained in the cell. Gets the float value contained in the cell. Gets the boolean value contained in the cell. Indicates if the cell's style is set. If return false, it means this cell has a default cell format. Gets and sets the html string which contains data and some formattings in this cell. Enumerates supported file format types. CSV Excel 2003, Excel97-2003 xls file. Excel 2007 Represents an xlsx file Excel 2007 xlsm file which enable macros Excel Template file Represents an Xltx file which enable macros. Represents a tab delimited text file,txt file. Represents a html file. Represents a pdf file. Represents a ods file. SpreadsheetML,Represents an Excel 2003 xml file. Represents a XLSB file. Represents a mhtml file. Represents a XPS file. Represents a TIFF file. Represents a SVG file. Data Interchange Format. Used in WebCellException. Represents the cell error type. The cell's validation failed. When insert the sheet's binding row to datasource, an error occured. When update the sheet's binding row or object's field, an error occured. When delete the sheet's binding row to datasource, an error occured. Represents a cell operation error. Gets the error cell. If the Cell is null, the error is cause by an CommitNewBindRow operation, that means the DataTable rejected the new created row. Gets the error type. Get the error value. Encapsulates a collection of objects. Merges a specified range of cells into a single cell. First row of this range(zero based) First column of this range(zero based) Number of rows(one based) Number of columns(one based) Reference the merged cell via the address of the upper-left cell in the range. Gets the element or null at the specified cell row index and column index. Row index Column index Return Cell object if a Cell object exists. Return null if the cell does not exist. Gets the element or at the specified cell row index. Row index If the row object does exist return Row object,otherwise return null. Gets the rows enumerator The rows enumerator Checks whether a row at given index is hidden. row index true if the row is hidden Checks whether a column at given index is hidden. column index true if the column is hidden. Unmerges a specified range of merged cells. First row of this range(zero based) First column of this range(zero based) Number of rows(one based) Number of columns(one based) Hides a row. Row index. Sets the height of the specified row. Row index. Height of row.In unit of point It should be between 0 and 409.5. To hide a row, sets row height to zero. Sets row height in unit of pixels. Row index. Number of pixels. Sets row height in unit of inches. Row index. Number of inches.It should be between 0 and 409.5/72. Gets the height of a specified row. Row index Height of row Gets the height of a specified row in unit of pixel. Row index Height of row Gets the height of a specified row in unit of inches. Row index Height of row Sets the width of the specified column. Column index. Width of column.Column width must be between 0 and 255. To hide a column, sets column width to zero. Sets column width in unit of pixels. Column index. Number of pixels. Sets column width in unit of inches. Column index. Number of inches. Get the width in different view type. The column index. the column width in unit of pixels Gets the width of the specified column Column index Width of column Gets the width of the specified column, in units of pixel. Column index Width of column in normal view. Gets the width of the specified column, in units of inches. Column index Width of column Unhides a row. Row index. Hides a column. Column index. Unhides a column Column index. Column width..Column width must be between 0 and 255 Copies data and formattings of a whole column. Source Cells object contains data and formattings to copy. Source column index. Destination column index. Copies data and formattings of a whole column. Source Cells object contains data and formattings to copy. Source column index. Destination column index. The copied column number. Copies data and formattings of a whole row. Source Cells object contains data and formattings to copy. Source row index. Destination row index. Copies data and formattings of some whole rows. Source Cells object contains data and formattings to copy. Source row index. Destination row index. The copied row number. Ungroups columns. The first column index to be ungrouped. The last column index to be ungrouped. Groups columns. The first column index to be grouped. The last column index to be grouped. Groups columns. The first column index to be grouped. The last column index to be grouped. Specifies if the grouped columns are hidden. Ungroups rows. The first row index to be ungrouped. The last row index to be ungrouped. Only removes outter group info. Groups rows. The first row index to be grouped. The last row index to be grouped. Deletes a column. Column index. Deletes a column. Column index. Indicates if update references in other worksheets. Inserts some columns into the worksheet. Column index. The number of columns. Inserts some columns into the worksheet. Column index. The number of columns. Indicates if references in other worksheets will be updated.v Deletes several columns. Column index. Number of columns to be deleted. Indicates if update references in other worksheets. Inserts a new column into the worksheet. Column index. Indicates if references in other worksheets will be updated. Inserts a new column into the worksheet. Column index. Deletes several rows. The first row index to be deleted. Number of rows to be deleted. If the deleted range contains the top part(not whole) of the table(ListObject), the ranged could not be deleted and nothing will be done.It works as MS Excel. Deletes multiple rows in the worksheet. Row index. Number of rows to be deleted. Indicates if update references in other worksheets. Deletes a row. Row index. Inserts multiple rows into the worksheet. Row index. Number of rows to be inserted. Indicates if references in other worksheets will be updated. Inserts multiple rows into the worksheet. Row index. Number of rows to be inserted. Inserts a new row into the worksheet. Row index. Delete all blank columns which do not contain any data. Checks whether given column is blank(does not contain any data). the column index true if given column does not contain any data Delete all blank rows which do not contain any data. Clears contents and formatting of a range. Start row index. Start column index. End row index. End column index. Clears contents and formatting of a range. Range to be cleared. Clears contents of a range. Start row index. Start column index. End row index. End column index. Clears contents of a range. Range to be cleared. Clears formatting of a range. Start row index. Start column index. End row index. End column index. Clears formatting of a range. Range to be cleared. Sets the style to a specified range of cells. First row of this range(zero based) First column of this range(zero based) Number of rows(one based) Number of columns(one based) The style object to be set Sets the style to a specified range of cells. The range of cells' names, like "A1:D6" The style object to be set Removes all formula and replaces with the value of the formula. Sorts the datas ascend/decend top to bottom in a range of a Worksheet by specified column index. Sorts the datas ascend/decend left to right in a range of a Worksheet by specified row index. The row number of the first cell to sort. The column number of the first cell to sort. Number of rows to be imported. Number of columns to be imported. The column index that specifis the sort column. if the Orientation is top to bottom ,it stand for the column index that specifis the sort column. if the Orientation is from left to right,it stand for the row index that specifis the sort row. whether the sorting order is asending . whether the sort is casesensitive . whether the sort orientation is from left to right [C#] GridWeb1.WebWorksheets[0].Cells.Sort(1,0,25,6,3,true,true,false); [VB] GridWeb1.WebWorksheets(0).Cells.Sort(1,0,25,6,3,true,true,false) Clear all cells in the collection. Gets the outline level of the row. row index. the outline level. Sets the outline level of the row. row index. outline level. Gets column index according to column name. Column name. Column index. Gets column name according to column index. Column index. Name of column. Gets cell name according to its row and column indexes. Row index. Column index. Name of cell. Gets the cell row and column indexes according to its name Name of cell. Output row index Output column index Sets borders for a cells range. The first row number of the range(zero based). The first column number of the range(zero based). The rows number. The columns number. The border position. The border style. [C#] GridWeb1.WebWorksheets[0].Cells.SetBorders(0, 0, 5, 8, SetBorderPosition.Outline, borderStyle1); [VB] GridWeb1.WebWorksheets(0).Cells.SetBorders(0, 0, 5, 8, SetBorderPosition.Outline, borderStyle1) Exports data in the collection to a two-dimension array object. The row number of the first cell to export out. The column number of the first cell to export out. Number of rows to be exported Number of columns to be exported Exported cell value array object. Exports data in the Cells collection of a WebWorksheet to a new DataTable object The row number of the first cell to export out. The column number of the first cell to export out. Number of rows to be imported. Number of columns to be imported. Indicates whether the data in the first row are exported as the column name of the DataTable True if a row in Excel file represents a row in DataTable. False if a column in Excel file represents a row in DataTable. Exported DataTable object. Gets the rows enumerator The rows enuerator. Gets item within the worksheet The zero based index of the element. The element at the specified index. This is the indexer for the Cells class. Gets the cell element at the specified index. Gets the element at the specified cell row index and column index. Row index. Column index. The object. [C#] Cells cells = excel.Worksheets[0].Cells; //Gets the cell at "A1" Cell cell = cells[0, 0]; [Visual Basic] Dim cells As Cells = excel.WorkSheets(0).Cells 'Gets the cell at "A1" Dim cell As Cell = cells(0,0) Gets the element at the specified cell name. Cell name,including its column letter and row number, for example A5. A object [C#] Cells cells = excel.Worksheets[0].Cells; Cell cell = cells["A1"]; //Gets the cell at "A1" [Visual Basic] Dim cells As Cells = excel.Worksheets(0).Cells Dim cell As Cell = cells("A1") 'Gets the cell at "A1" Gets the number of cells. Gets or sets the default column width in the worksheet,in unit of characters. Gets or sets the default row height in this worksheet,in unit of points. Gets or sets the default row height in this worksheet,in unit of pixels. Gets the collection of merged cells. In this collection, each item is a structure which represents an area of merged cells. Maximum row index of cell which contains data or style. Return -1 if there is no cell whiche contains data or style in the worksheet. Maximum column index of cell which contains data or style. Return -1 if ther is not cell. Represents a single column in a worksheet. Gets the index of this column. Indicates whether the column is hidden. Collects the objects that represent the individual columns in a worksheet. Gets the columns enumerator The columns enumerator Gets the object by the position in the list. The position in the list. Returns the column object. Gets a object by column index. The Column object of given column index will be instantiated if it does not exist before. Encapsulates the object that represents a cell comment. Represents the width of the comment, in unit of pixels. Represents the Height of the comment, in unit of pixels. Encapsulates a collection of objects. Gets the rows enumerator The rows enumerator Adds a comment to the collection. Cell row index. Cell column index. object index. Adds a comment to the collection. Cell name. object index. Removes the comment of the specific cell. The name of cell which contains a comment. Removes the comment of the specific cell. The row index. the column index. Removes all comments; Gets the element at the specified index. The zero based index of the element. The element at the specified index. Gets the element at the specified cell. Cell name. The element at the specified cell. Gets the element at the specified row index and column index. Row index. Column index. The element at the specified cell. Encapsulates the object that represents a name object. Returns a string represents the current Range object. Gets the name text of the object. Returns or sets the formula that the name is defined to refer to, beginning with an equal sign. Indicates this name belongs to Workbook or Worksheet. 0 = Global name, otherwise index to sheet (one-based) Encapsulates a collection of objects. Gets the rows enumerator The rows enumerator Defines a new global name. Name text.It can have sheetname . The formula that the name is defined to refer to.It must have a sheetname .eg.'sheet hello!'A1:B2. Name object index. Defines a new name in the specified sheet. The sheet index that the name is applyed in. Name text.It can not have sheetname . The formula that the name is defined to refer to.It must have sheetname .eg.'sheet hello!'A1:B2. Name's SheetIndex ,the index is from 1. Name object index. Remove an array of name The names' text. Remove the name at the specific index. Please make sure that the name is not referred by the other formulas before calling the method. And if the name is referred,please only set Name.RefersTo as null. Removes all Names; Gets the element at the specified index. The zero based index of the element. The element at the specified index. Encapsulates the object that represents a hyperlink. Represents the address of a hyperlink. Returns or sets the self defined command value text for the specified hyperlink. Represents the text to be displayed for the specified hyperlink. The default value is the address of the hyperlink. Gets the range of hyperlink. Returns or sets the ScreenTip text for the specified hyperlink. Get or Set web link target type,please note this is an extension attribute and can not keep in excel file Get or Set Alternate text for the image link,please note this is an extension attribute and can not keep in excel file Indicates whether to discard user input at client browser when user click this CellCommand hyperlink. Could be used as an "undo" action. Get or Set Image URL for the link, there is no imageurl properties in hyperlink, so actually use TextToDisplay to record this value ,TextToDisplay will be set to <img src=value > so it will change the value of TextToDisplay Encapsulates a collection of objects. Adds a hyperlink to a specified cell or a range of cells. First row of the hyperlink range. First column of the hyperlink range. Number of rows in this hyperlink range. Number of columns of this hyperlink range. Address of the hyperlink. object index. [C#] Worksheet worksheet = excel.Worksheets[0]; worksheet.Hyperlinks.Add("A4", 1, 1, "http://www.aspose.com"); worksheet.Hyperlinks.Add("A5", 1, 1, "c:\\book1.xls"); [Visual Basic] Dim worksheet as Worksheet = excel.Worksheets(0) worksheet.Hyperlinks.Add("A4", 1, 1, "http://www.aspose.com") worksheet.Hyperlinks.Add("A5", 1, 1, "c:\\book1.xls") Adds a hyperlink to a specified cell or a range of cells. Cell name. Number of rows in this hyperlink range. Number of columns of this hyperlink range. Address of the hyperlink. object index. Adds a hyperlink to a specified cell . Cell name. Address of the hyperlink. object index. Adds a hyperlink to a specified cell or a range of cells. The top-left cell of the range. The bottom-right cell of the range. Address of the hyperlink. The text to be displayed for the specified hyperlink. The screenTip text for the specified hyperlink. object index. Gets the cell's Hyperlink object. If there is no Hyperlink of the cell, returns null. The GridCell object. the GridHyperlink object. Gets the cell's Hyperlink object. If there is no Hyperlink of the cell, returns null. The row of the cell. The column of the cell. the GridHyperlink object. Clears all hyperlinks. Remove the hyperlink at the specified index. The zero based index of the element. Remove the hyperlink at the specified area. The area which contains hyperlink. Gets the element at the specified index. The zero based index of the element. The element at the specified index. Gets the rows enumerator The rows enumerator Gets the element at the specified index. The zero based index of the element. The element at the specified index. Represents the number or datetime format type. General Decimal 0 Decimal 0.00 Decimal #,##0 Decimal #,##0.00 Currency $#,##0;$-#,##0 Currency $#,##0;[Red]$-#,##0 Currency $#,##0.00;$-#,##0.00 Currency $#,##0.00;[Red]$-#,##0.00 Percentage 0% Percentage 0.00% Scientific 0.00E+00 Fraction # ?/? Fraction # ??/?? Date m/d/yyyy Date d-mmm-yy Date d-mmm Date mmm-yy Time h:mm AM/PM Time h:mm:ss AM/PM Time h:mm Time h:mm:ss Time m/d/yy h:mm Currency #,##0;-#,##0 Currency #,##0;[Red]-#,##0 Currency #,##0.00;-#,##0.00 Currency #,##0.00;[Red]-#,##0.00 Accounting _ * #,##0_ ;_ * -#,##0_ ;_ * "-"_ ;_ @_ Accounting _ $* #,##0_ ;_ $* -#,##0_ ;_ $* "-"_ ;_ @_ Accounting _ * #,##0.00_ ;_ * -#,##0.00_ ;_ * "-"??_ ;_ @_ Accounting _ $* #,##0.00_ ;_ $* -#,##0.00_ ;_ $* "-"??_ ;_ @_ Time mm:ss Time [h]:mm:ss Time mm:ss.0 Scientific ##0.0E+00 Text @ Currency $#,##0;($#,##0) Currency $#,##0;[Red]($#,##0) Currency $#,##0.00;($#,##0.00) Currency $#,##0.00;[Red]($#,##0.00) Date YYYY?M? Date M?D? Date M?D? Date M/D/YY Date YYYY?M?D? Date YYYY?M? Date YYYY?M? Date M?D? Date YYYY?M? Date M?D? Date M?D? Date YYYY?M? Date M?D? Time h?mm? Time h?mm?ss? Time tth?mm? Time tth?mm?ss? Time tth?mm? Time tth?mm?ss? Encapsulates the object that represents a single picture in a spreadsheet. Moves the picture to a specified location. Upper left row index. Upper left column index. Indicates whether the shape is a group. Adds a hyperlink to the shape. Address of the hyperlink. Return the new hyperlink object. Remove the hyperlink of the shape. Moves the shape to a specified range. Upper left row index. Upper left column index. Lower right row index Lower right column index Moves the picture to the top-right corner. the row index. the column index. Gets the data of the picture. Gets the original height of the picture. Gets the original width of the picture. Represents the of the border line of a picture. Gets or sets the weight of the border line of a picture in units of pt. Gets or sets the path and name of the source file for the linked image. The default value is an empty string. If SourceFullName is not an empty string, the image is linked. If SourceFullName is not an empty string, but Data is null, then the image is linked and not stored in the file. Gets the image format of the picture. Gets or sets the Image object. Gets the original height of picture, in unit of centimeters. Gets the original width of picture, in unit of centimeters. Gets the original height of picture, in unit of inches. Gets the original width of picture, in unit of inches. Gets and sets the name of the shape. Indicates whether the object is visible. True if the object is locked, False if the object can be modified when the sheet is protected. Represents the height of shape, in unit of pixel. Represents the width of shape, in unit of pixels. Returns the position of a shape in the z-order. True means that don't allow changes in aspect ratio. Gets and sets the rotation of the shape. Gets the hyperlink of the shape. Represents the horizontal offset of shape from its left column, in unit of pixels. Represents the vertical offset of shape from its top row, in unit of pixels. If the shape is in the chart, represents the vertical offset of shape from its top border. Represents the width of the shape's horizontal offset from its lower right corner column, in unit of pixels. Represents upper left corner column index. Represents upper left corner row index. If the shape is in the shape or in the group , UpperLeftRow will be ignored. Represents lower right corner column index. Represents lower right corner row index. Gets or sets the shape's vertical offset from its upper left corner row. The range of value is 0 to 256. Gets or sets the shape's horizontal offset from its upper left corner column. The range of value is 0 to 1024. Gets or sets the shape's vertical offset from its lower right corner row. The range of value is 0 to 256. Gets or sets the shape's horizontal offset from its lower right corner column. The range of value is 0 to 1024. Represents the width of the shape, in unit of inch. Represents the width of the shape, in unit of point. Represents the width of the shape, in unit of centimeters. Represents the height of the shape, in unit of inches. Represents the height of the shape, in unit of points. Represents the height of the shape, in unit of inches. Represents the horizontal offset of shape from its left column, in unit of inches. Represents the horizontal offset of shape from its left column, in unit of centimeters. Represents the vertical offset of shape from its top row, in unit of inches. Represents the vertical offset of shape from its top row, in unit of centimeters. Gets and sets the horizonal offset of shape from worksheet left border,in unit of pixels. Gets and sets the vertical offset of shape from worksheet top border,in unit of pixels. Gets and sets the width scale, in unit of percent of the original picture width. If the shape is not picture ,the WidthScale property only returns 100; Gets and sets the height scale,in unit of percent of the original picture height. If the shape is not picture ,the HeightScale property only returns 100; Gets and sets the line border of the shape is visible. Gets and sets whether shape is vertically flipped . Indicates whether shape is relative to original picture size. Gets or sets the worksheet range linked to the control's value. Represents the string in this TextBox object. Gets and sets the html string which contains data and some formattings in this textbox. Gets and sets the text wrapped type of the shape which contains text. Encapsulates a collection of objects. Adds a picture to the collection. Upper left row index. Upper left column index. Lower right row index Lower right column index Stream object which contains the image data. object index. Adds a picture to the collection. Upper left row index. Upper left column index. Lower right row index Lower right column index Image filename. object index. Adds a picture to the collection. Upper left row index. Upper left column index. Stream object which contains the image data. object index. Adds a picture to the collection. Upper left row index. Upper left column index. Image filename. object index. Adds a picture to the collection. Upper left row index. Upper left column index. Image filename. Scale of image width, a percentage. Scale of image height, a percentage. object index. Gets the rows enumerator The rows enumerator Gets the element at the specified index. The zero based index of the element. The element at the specified index. Encapsulates the object that represents a single picture in a spreadsheet. Gets the cells enumerator The cells enumerator Get the cell by specific index in the list. The position. The Cell object. NOTE: This member is now obsolete. Instead,please use Row.GetEnumerator() method to iterate all cells in this row. This property will be removed 12 months later since February 2015. Aspose apologizes for any inconvenience you may have experienced. Indicates whether the row contains any data Gets the cell. The column index Gets the index of this row. Indicates whether the row is hidden. Gets and sets the row height in unit of Points. Gets the first cell in the row. Gets the last cell in the row. Gets the last cell in the row. Gets and sets the outline level. Encapsulates a collection of objects. Gets the rows enumerator The rows enumerator Gets the row object by the position in the list. The position. The Row object at given position. Gets a object by given row index. The Row object of given row index will be instantiated if it does not exist before. Represents a shape object. Gets the Buffer of object. Gets and sets mso drawing type. Represents upper left corner row index. If the shape is in the shape or in the group , UpperLeftRow will be ignored. Represents upper left corner column index. Represents the string in this TextBox object. Gets and sets the name of the shape. Represents the horizontal offset of shape from its left column, in unit of pixels. Represents the vertical offset of shape from its top row, in unit of pixels. If the shape is in the chart, represents the vertical offset of shape from its top border. Returns the position of a shape in the z-order. Gets the image format of the picture. add the validation settings in the cell. The row index. The column index. add the validation settings in the cell. cell name. Applies the validation to the area. The area. In this method , we will remove all old validations on this area. Remove the validation settings in the range. The range which contains the data validation settings. Remove the validation settings in the cell. The row index. The column index. Gets or sets the serverside validation javascript function name. Use the GridCustomServerValidation property to specify the serverside validation . Loads value list from a DataView object. You can specify the value field and text field of the DataView. Each value and text pair will be combined to one string, with a comma between them. The DataView object. The value field name. The text field name. Indicates whether to add a value prefix to each displayed text. Gets or sets the validation type. Gets/Sets the value list object. Represents a collection of which contains the data validation settings. The old valvidations on the area will not be removed if directly adding are to this list. Represents the value or expression associated with the data validation. Represents the value associated with the data validation. Represents the value or expression associated with the second part of the data validation. Represents the operator for the data validation. Represents the data validation error message. Represents the title of the data-validation input dialog box. Indicates whether the data validation error message will be displayed whenever the user enters invalid data. Represents the data validation error message. Represents the title of the data-validation error dialog box. Gets or sets the regular expression string. Gets or sets the client validation javascript function name. Use the ClientValidationFunction property to specify the client validation function's name. The function should be declared as this formation:
function customValicationFunction(source, value)
The parameter "source" is the cell object. The parameter "value" is the string value of a cell to be checked. The function should returns true if the value is valid.
Encapsulates a collection of objects. Add a to the collection. A validation object. object index. Add a to the collection. the added GridValidation instance. NOTE: This member is now obsolete. Instead, please use GridValidationCollection.Add(row,col) method. This property will be removed 12 months later since JANUARY 2015. Aspose apologizes for any inconvenience you may have experienced. Adds a data validation to the collection. The area contains this validation. the validation. Add a to the collection.the validation is applied to the specificed cell. the name of the cell. the added GridValidation instance. Add a to the collection.the validation is applied to the specificed cell. The row index. The column index. the added GridValidation instance. Gets the validation applied to given cell. The row index. The column index. Returns a object or null if there is no validation for given cell Clears all validations. Remove the validation at the specified index. The zero based index of the element. Gets the element at the specified index. The zero based index of the element. The element at the specified index. Any value validation type. Whole number validation type. Decimal validation type. List validation type. Date validation type. Time validation type. Text length validation type. Custom validation type. Show dropdown list. Free List validation type. Custom validation type, using regular expression. TRUE or FALSE DateTime (yyyy-MM-dd or yyyy-MM-dd hh:mm:ss). Custom javascript function validation. Use the ClientValidationFunction property to specify the client validation function's name. The function should be declared as this formation:
function customValicationFunction(source, value)
The parameter "source" is the cell object. The parameter "value" is the string value of a cell to be checked. The function should returns true if the value is valid.
Custom server-side function validation. Use the CustomServerFunction property to specify the serverside validation . below is the example code:
first define class which implement GridCustomServerValidation class myservervali : GridCustomServerValidation
...... then add validation var gridValidationCollection = this.GridWeb.ActiveSheet.Validations;
GridValidation gv = gridValidationCollection.Add(new GridCellArea(1, 1, 2, 2));
gv.ValidationType = GridValidationType.CustomServerFunction; gv.ServerValidation = new myservervali(); then set ClientValidationFunction to deal with client logic when server validation fails and return message gv.ClientValidationFunction = "ValidationErrorClientFunction"; the client function shall be declared like this: function ValidationErrorClientFunction(cell,msg) please check demo page for a detail reference
Display the cell as a checkbox. And the value of the cell is True of False. Represents a root object to create an Excel spreadsheet. Calculates the result of formulas. Encapsulates the object that represents a single worksheet. Copies contents and formats from another worksheet. Source worksheet. Indicates if the worksheet is protected. Unfreezes panes in the worksheet. Freezes panes at the specified cell in the worksheet. Cell name. Number of visible rows in top pane, no more than row index. Number of visible columns in left pane, no more than column index. Row index and column index cannot all be zero. Number of rows and number of columns also cannot all be zero. Freezes panes at the specified cell in the worksheet. Row index. Column index. Number of visible rows in top pane, no more than row index. Number of visible columns in left pane, no more than column index.

Row index and column index cannot all be zero. Number of rows and number of columns also cannot all be zero.

The first two parameters specify the freezed position and the last two parameters specify the area freezed on the left top pane.

Gets the freeze panes. Row index. Column index. Number of visible rows in top pane, no more than row index. Number of visible columns in left pane, no more than column index. Return whether the worksheet is frozen Sets the range to which the specified AutoFilter applies. Row index. Start column index. End column Index. Sets the filter for the column.notice we shall call AddAutoFilter before calling of filterString The filter criteria string. notice we use comma->"," as split char,so the cell value you want to filter shall not contains with comma filterString(10,"123,456") means column 10 shall contain 123 or 456, filterString(10,"123") means column10 shall contain 123 value split with comma,eg. 123,456,789 or abc Refresh auto filters to hide or unhide the rows. Remove the auto filter of the worksheet. The integer offset of the field on which you want to apply ,based on the first filter column (from the left of the list; the leftmost field is field 0). Add custom filter for the specified row. The filter criteria string. notice we use , and ; as split char,so the cell value shall not contains with those split char below are the criteria string examples //column 0 with value 12.3 CELL0 = 12.3 //column 1 with value ABC CELL1 = ABC //column 0 with value 123 or 456 or ABC and column 1 with value ABC CELL0 = 123,456,ABC; CELL1 = ABC Moves the sheet to another location in the spreadsheet. Destination sheet index. Clears all comments in designer spreadsheet. Calculates a formula. Protects worksheet. This method protects worksheet without password. It can protect worksheet in all versions of Excel file. unProtects worksheet. Autofits the column width. Column index. First row index. Last row index. This method autofits a row based on content in a range of cells within the row. Autofits the column width. Column index. AutoFitColumn is an imprecise function. Makes all cells readonly.this is extended attribute notice this attribute can not keep in actual cell,if you want to keep protect please use setProtect Makes all cells editable.this is extended attribute Gets the column caption. If the caption is not set, returns empty string. Column index. The column caption. If the caption is not set, returns empty string. Sets the caption for the column.please note this is an extension attribute and can not keep in excel file Column index. The column caption. Pass null or empty string if you want cancel the caption. Gets the row caption. If the caption is not set, returns empty string. Row index. The row caption. If the caption is not set, returns empty string. Sets the caption for the row. Row index. The row caption. Pass null or empty string if you want cancel the caption. Gets the rowheader's tooltip text. The row's index. The tooltip text. Sets the rowheader's tooltip text. The row's index. The tooltip text. Gets the columnheader's tooltip text. The column's index. The tooltip text. Sets the columnheader's tooltip text. The column's index. The tooltip text. Gets whether the cell is readonly.this is an extended attribute of GridWeb ,it will not keep in actual excel file Sets whether the cell is readonly.this is an extended attribute of GridWeb ,it will not keep in actual excel file Makes a range of cells editable. http://docs.aspose.com:8082/docs/display/cellsnet/Protecting+Cells Make all cells read only by calling the SetAllCellsReadonly method. then call this method to Specify the range of cells that to be editable The start row of the range. The start column of the range. The number of the rows. The number of the columns. Makes a range of cells readonly. http://docs.aspose.com:8082/docs/display/cellsnet/Protecting+Cells First make all cells editable by calling the SetAllCellsEditable method. then call this method to Specify the range of cells that to be readonly The start row of the range. The start column of the range. The number of the rows. The number of the columns. Groups rows. The first row index to be grouped. The last row index to be grouped. Specifies if the grouped rows are hidden. Ungroups rows. The first row index to be ungrouped. The last row index to be ungrouped. Only removes outter group info. Sets a row to readonly so user can't delete it from client side. this is extended method of GridWeb specifically,it will not keep and take affect in actual excel file row index. true or false. Sets a column to readonly so user can't delete it from client side. this is extended method of GridWeb specifically,it will not keep and take affect in actual excel file column index. true or false. Gets if a row is readonly. this is extended method of GridWeb specifically,it will not keep and take affect in actual excel file row index. If readonly returns true. Gets if a column is readonly. this is extended method of GridWeb specifically,it will not keep and take affect in actual excel file column index. If readonly returns true. Creates subtotal in the sheet. The row index of the column name row. The number of the data rows. The column index of the column to be grouped. The subtotal function type. The column indexes to be subtotaled. The label of subtotal function. The style of the grand total line. The style of the subtotal line. The number type of the subtotal result cells. The custome format string of the subtotal result cells. Can be null. Creates subtotal in the sheet. The row index of the column name row. The number of the data rows. The column index of the column to be grouped. The subtotal function type. The column indexes to be subtotaled. Removes subtotal created by the CreateSubtotal method in the sheet. Bind the sheet to the DataSource. After setting a datasource for the worksheet, call this method to generate the bind columns automatically. Bind the sheet to the DataSource. Commits the new added bind row and add it to the datasource. The row index of the new row. If no row is created, returns -1. Cancels and deletes the new added bind row. The row index. If there is no new created bind row, returns -1. Creates a new bind row and bind to the datasource. The row index of the new row. If no row is created, returns -1. Deletes a bind row. The row index. The deleted row index. If no bind row is deleted, returns -1. Gets or sets the name of the worksheet. The max length of sheet name is 31. And you cannot assign same name(case insensitive) to two worksheets. For example, you cannot set "SheetName1" to the first worksheet and set "SHEETNAME1" to the second worksheet. Gets or sets a value indicating whether the grid lines are visible.Default is true. True if zero values are displayed. Indicates whether show outline. Indicates whether this worksheet is selected when the workbook is opened. Gets a collection. Gets a collection. Gets the collection. Gets the data validation setting collection in the worksheet. Indicates whether this sheet's name is shown in the sheet tabs of the control. Represents worksheet tab color. This feature is only supported in ExcelXP(Excel2002) and above version. If you save file as Excel97 or Excel2000 format, it will be omitted. Represents worksheet code name. You cannot change the code name while the template file contains VBA/macro. Gets and sets worksheet background image. Gets the pivotTables in the worksheet. Gets or sets the default row height in this worksheet,in unit of points. Gets or sets the default row height in this worksheet,in unit of pixels. Indicates if the summary row will be positioned below the detail rows in the outline. Gets the binding rows number in data-binding mode. Gets or sets the DataMember from the multi-member DataSource. Generally it represents a DataTable object of a DataSet. Gets or sets the DataSource. Generally it's a DataSet object. Bind columns collection. In data-binding mode, indicates whether to create bind column header captions in the sheet. In data-binding mode, BindStartRow and BindStartColumn indicate the position of the grid to bind bo the datasource. In data-binding mode, BindStartRow and BindStartColumn indicate the position of the grid to bind bo the datasource. The actually binding datasource object at run-time. It is a DataView object when the DataSource property is a DataSet, DataTable or DataView object. Occurs when the worksheet has created a new bind row and need to initialize it. Represents the method that intend to handle InitializeNewBindRow event. sender: The worksheet object. bindObject: The new created bind object. Generally it's a DataRowView object. Collects the objects that represent the individual rows in a worksheet. Gets the rows enumerator The rows enumerator Adds a worksheet to the collection. object index. Adds a worksheet to the collection. Worksheet name object. Removes the element at a specified index. The index value of the element to remove. Removes the element at a specified name. The name of the element to remove. Sets the visible options. Whether the worksheet is visible Whether ignore error if this option is not valid. Adds a worksheet to the collection and copies data from an existed worksheet. Name of source worksheet. object index. Specifies an invalid worksheet name. Adds a worksheet to the collection and copies data from an existed worksheet. Index of source worksheet. object index. Clear all worksheets. A workbook must contains a worksheet. The sheet name. Returns an inserted worksheet. Swaps the two sheets. The first worksheet. The second worksheet. Calculates the result of formulas. Imports from a DataView. Creates a sheet with the DataView's table name automatically. The DataView object. Specifies the style of the dataview header bar. Specifies the style of the data area. Imports from a DataView to the specified sheet and position. The DataView object. Specifies the style of the dataview header bar. Specifies the style of the data area. Specifies the sheet name. If the sheet doesn't exist, it will be created for you. Specifies the import position. Specifies the import postion. Copys contents to an array. An array. Index of the array. Adds a sheet object. The sheet. Gets the element at the specified index. The zero based index of the element. The element at the specified index. Gets the element with the specified name. The name of the worksheet. The GridWorksheet with the name. Gets a value indicating if access to the ICollection is synchronized (thread-safe). Gets an object that can be used to synchronize access to the ICollection. Gets or sets the control's default font name. [C#] GridWeb1.DefaultFontName = "Arial"; [Visual Basic] GridWeb1.DefaultFontName = "Arial" Gets or sets the decimal separator for formatting/parsing numeric values. Default is the decimal separator of current Region. Gets or sets the control's default font size. [C#] GridWeb1.DefaultFontSize = new System.Web.UI.WebControls.FontUnit("10pt"); [Visual Basic] GridWeb1.DefaultFontSize = New System.Web.UI.WebControls.FontUnit("10pt") Gets the collection of all the Name objects in the spreadsheet. Represents an area of cells. Gets or sets the start row of this area. Gets or sets the end row of this area. Gets or sets the start column of this area. Gets or sets the end column of this area. Test if the object equals to another WebCellArea object. Get the hashcode. Creat a cell area. Creat a cell area. The start row. The start column. The end row. The end column. Used in the CellError event of the GridWeb. [C#] onErrorActionQuery.OnErrorAction = OnErrorActionType.Ignore; [VB] onErrorActionQuery.OnErrorAction = OnErrorActionType.Ignore Gets or set the action type. Used in CellError event of the GridWeb. User set the OnErrorActionQuery.OnErrorAction to tell the control Stop processing or Ignore error. Throws the current exception. Stops current processing. Ignores the error and continue processing. Represents the row/column type of the row/column events. Row type. Column type. Provides data for row/column events. Call this method in RowDeleting/ColumnDeleting event handlers to cancel the deleting operations. The row or column type. The row or column number, starts from zero. The argument of the event. shall we cancel the operation. Used in WebCellException. Represents the cell error type. The cell's validation failed. When insert the sheet's binding row to datasource, an error occured. When update the sheet's binding row or object's field, an error occured. When delete the sheet's binding row to datasource, an error occured. Represents a cell operation error. Gets the error cell. If the Cell is null, the error is cause by an CommitNewBindRow operation, that means the DataTable rejected the new created row. Gets the error type. Get the error value. Represents the interface that intend to handle workbook events. void handleCellEvent(Object sender, CellEventArgs e); The source of the event. The event argument. NOTE: This class is now obsolete. please use GridPivotTable Instead. This class will be removed after 6 months since Aug. 2014. Aspose apologizes for any inconvenience you may have experienced. Represents the memory cache for a PivotTable report. The PivotCache object is a member of the collection. Uses the PivotCache method to return a PivotCache object for a PivotTable report (each report has only one cache). The source data of PivotCache come from WebWorksheet, DataTable, and so on. [C#] //On the assumption that worksheet "Sheet1" has datas, then creates a PivotTable report base on it. WebWorksheet sourceSheet = GridWeb1.WebWorksheets["Sheet1"]; Aspose.Cells.GridWeb.Data.WebCellArea sourceRange = new WebCellArea(); sourceRange.StartRow = 0; sourceRange.StartColumn = 0; sourceRange.EndRow = 10; sourceRange.EndColumn = 5; PivotCache cache = GridWeb1.WebWorksheets.PivotCaches.Add(sourceSheet, sourceRange); PivotTable table = cache.CreatePivotTable(); table.PivotFields[0].Orientation = PivotFieldOrientation.RowField; table.PivotFields[1].Orientation = PivotFieldOrientation.RowField; table.PivotFields[2].Orientation = PivotFieldOrientation.RowField; table.PivotFields[3].Orientation = PivotFieldOrientation.ColumnField | PivotFieldOrientation.DataField; table.PivotFields[4].Orientation = PivotFieldOrientation.ColumnField; table.PivotFields[5].Orientation = PivotFieldOrientation.ColumnField | PivotFieldOrientation.DataField; table.PivotFields[3].Function = PivotFieldFunction.Count; table.PivotFields[5].Function = PivotFieldFunction.Sum; table.DataBind(); //Creates a PivotTable report from DataView or DataTable. DataView dataView;//Or DataTable dataTable; . . . Sets dataView(dataTable) Value . . . PivotCache cache = GridWeb1.WebWorksheets.PivotCaches.Add(dataView); //Or PivotCache cache = GridWeb1.WebWorksheets.PivotCaches.Add(dataTable); PivotTable table = cache.CreatePivotTable(); table = GridWeb1.WebWorksheets.PivotTables["PivotTable1"]; table.PivotFields[0].Orientation = PivotFieldOrientation.RowField; table.PivotFields[1].Orientation = PivotFieldOrientation.RowField; table.PivotFields[2].Orientation = PivotFieldOrientation.ColumnField | PivotFieldOrientation.DataField; table.DataBind(); [VB] 'On the assumption that worksheet "Sheet1" has datas, then creates a PivotTable report base on it. Dim sourceSheet As WebWorksheet = GridWeb1.WebWorksheets("Sheet1") Dim sourceRange As Aspose.Cells.GridWeb.Data.WebCellArea = New WebCellArea()/ sourceRange.StartRow = 0 sourceRange.StartColumn = 0 sourceRange.EndRow = 10 sourceRange.EndColumn = 5 Dim cache As PivotCache = GridWeb1.WebWorksheets.PivotCaches.Add(sourceSheet,sourceRange) Dim table As PivotTable = cache.CreatePivotTable() table.PivotFields(0).Orientation = PivotFieldOrientation.RowField table.PivotFields(1).Orientation = PivotFieldOrientation.RowField table.PivotFields(2).Orientation = PivotFieldOrientation.RowField table.PivotFields(3).Orientation = PivotFieldOrientation.ColumnField | PivotFieldOrientation.DataField table.PivotFields(4).Orientation = PivotFieldOrientation.ColumnField table.PivotFields(5).Orientation = PivotFieldOrientation.ColumnField | PivotFieldOrientation.DataField table.PivotFields(3).Function = PivotFieldFunction.Count table.PivotFields(5).Function = PivotFieldFunction.Sum table.DataBind() 'Creates a PivotTable report from DataView or DataTable. Dim dataView As DataView ' Or Dim dataTable As DataTable . . Sets dataView(dataTable) Value . . . Dim cache As PivotCache = GridWeb1.WebWorksheets.PivotCaches.Add(dataView) 'Or Dim cache As PivotCache = GridWeb1.WebWorksheets.PivotCaches.Add(dataTable) Dim table As PivotTable = cache.CreatePivotTable() table = GridWeb1.WebWorksheets.PivotTables("PivotTable1") table.PivotFields(0).Orientation = PivotFieldOrientation.RowField table.PivotFields(1).Orientation = PivotFieldOrientation.RowField table.PivotFields(2).Orientation = PivotFieldOrientation.ColumnField | PivotFieldOrientation.DataField table.DataBind() Creates PivotTable report to a new Sheet. The PivotTable object Calling this method will create a PivotTable object and a new worksheet. Then adds the PivotTable object to the last location of GridWeb.Worksheets.PivotTables. If You call the PivotTable.DataBind() method, the PivotTable report will be painted to the created worksheet. Creates PivotTable report to a new Sheet. The name of the pivotTable object The PivotTable object Calling this method will create a PivotTable object and a new worksheet. Then adds the PivotTable object to the last location of GridWeb.Worksheets.PivotTables. If You call the PivotTable.DataBind() method, the PivotTable report will be painted to the created worksheet. Creates PivotTable report to the targetSheet. The sheet that the pivotTable report will paint to The start cell that the pivotTable report will paint to The PivotTable object Calling this method will create a PivotTable object Then adds the PivotTable object to the last location of GridWeb.Worksheets.PivotTables. If You call the PivotTable.DataBind() method, the PivotTable report will be painted to the targetSheet starting at the targetCell. Creates PivotTable report to the targetSheet. The sheet that the pivotTable report will paint to The start cell that the pivotTable report will paint to The name of the pivotTable object The PivotTable object Calling this method will create a PivotTable object naming tableName Then adds the PivotTable object to the last location of GridWeb.Worksheets.PivotTables. If You call the PivotTable.DataBind() method, the PivotTable report will be painted to the targetSheet starting at the targetCell. Determines whether two Object instances are equal. Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. Returns a String that represents the current Object Resets the source data The data source Resets the source data The data source Resets the source data The sheet of source dat The range of the sheet Returns the parent object for the specified object(the container of PivotCache). Read-only. Returns the data source of System.Data.DataTable for the PivotTable report. DataTable.Columns will be convert to PivotTable fields. Returns the data source of System.Data.DataView for the PivotTable report. Returns the data source of WebWorksheet for the PivotTable report. DataTable.Columns will be convert PivotTable fields. Returns the range of the data source using with SourceSheet. [C#] //Changes data source range //Original value: StartRow=0;StartColumn=0;EndRow=10;EndColumn=4; PivotTable table = GridWeb1.WebWorksheets.PivotTables["myPivotTable"]; //Adds 2 row data table.PivotCache.SourceCellArea.EndRow = 12; [VB] 'Changes data source range 'Original value: StartRow=0;StartColumn=0;EndRow=10;EndColumn=4; Dim table As PivotTable = GridWeb1.WebWorksheets.PivotTables("myPivotTable") 'Adds 2 row data table.PivotCache.SourceCellArea.EndRow = 12 Represents the type of the source data Returns the name of PivotCache.Re Returns the index of this object in Parent NOTE: This class is now obsolete. please use GridPivotTableCollection Instead. This class will be removed after 6 months since Aug. 2014. Aspose apologizes for any inconvenience you may have experienced. Represents the collection of memory caches from the PivotTable reports in a workbook. Each memory cache is represented by a object. [C#] //On the assumption that worksheet "Sheet1" has datas, then creates a PivotTable report base on it. WebWorksheet sourceSheet = GridWeb1.WebWorksheets["Sheet1"]; Aspose.Cells.GridWeb.Data.WebCellArea sourceRange = new WebCellArea(); sourceRange.StartRow = 0; sourceRange.StartColumn = 0; sourceRange.EndRow = 10; sourceRange.EndColumn = 5; PivotCache cache = GridWeb1.WebWorksheets.PivotCaches.Add(sourceSheet, sourceRange); PivotTable table = cache.CreatePivotTable(); table.PivotFields[0].Orientation = PivotFieldOrientation.RowField; table.PivotFields[1].Orientation = PivotFieldOrientation.RowField; table.PivotFields[2].Orientation = PivotFieldOrientation.RowField; table.PivotFields[3].Orientation = PivotFieldOrientation.ColumnField | PivotFieldOrientation.DataField; table.PivotFields[4].Orientation = PivotFieldOrientation.ColumnField; table.PivotFields[5].Orientation = PivotFieldOrientation.ColumnField | PivotFieldOrientation.DataField; table.PivotFields[3].Function = PivotFieldFunction.Count; table.PivotFields[5].Function = PivotFieldFunction.Sum; table.DataBind(); //Creates a PivotTable report from DataView or DataTable. DataView dataView;//Or DataTable dataTable; . . . Sets dataView(dataTable) Value . . . PivotCache cache = GridWeb1.WebWorksheets.PivotCaches.Add(dataView); //Or PivotCache cache = GridWeb1.WebWorksheets.PivotCaches.Add(dataTable); PivotTable table = cache.CreatePivotTable(); table = GridWeb1.WebWorksheets.PivotTables["PivotTable1"]; table.PivotFields[0].Orientation = PivotFieldOrientation.RowField; table.PivotFields[1].Orientation = PivotFieldOrientation.RowField; table.PivotFields[2].Orientation = PivotFieldOrientation.ColumnField | PivotFieldOrientation.DataField; table.DataBind(); [VB] 'On the assumption that worksheet "Sheet1" has datas, then creates a PivotTable report base on it. Dim sourceSheet As WebWorksheet = GridWeb1.WebWorksheets("Sheet1") Dim sourceRange As Aspose.Cells.GridWeb.Data.WebCellArea = New WebCellArea()/ sourceRange.StartRow = 0 sourceRange.StartColumn = 0 sourceRange.EndRow = 10 sourceRange.EndColumn = 5 Dim cache As PivotCache = GridWeb1.WebWorksheets.PivotCaches.Add(sourceSheet,sourceRange) Dim table As PivotTable = cache.CreatePivotTable() table.PivotFields(0).Orientation = PivotFieldOrientation.RowField table.PivotFields(1).Orientation = PivotFieldOrientation.RowField table.PivotFields(2).Orientation = PivotFieldOrientation.RowField table.PivotFields(3).Orientation = PivotFieldOrientation.ColumnField | PivotFieldOrientation.DataField table.PivotFields(4).Orientation = PivotFieldOrientation.ColumnField table.PivotFields(5).Orientation = PivotFieldOrientation.ColumnField | PivotFieldOrientation.DataField table.PivotFields(3).Function = PivotFieldFunction.Count table.PivotFields(5).Function = PivotFieldFunction.Sum table.DataBind() 'Creates a PivotTable report from DataView or DataTable. Dim dataView As DataView ' Or Dim dataTable As DataTable . . Sets dataView(dataTable) Value . . . Dim cache As PivotCache = GridWeb1.WebWorksheets.PivotCaches.Add(dataView) 'Or Dim cache As PivotCache = GridWeb1.WebWorksheets.PivotCaches.Add(dataTable) Dim table As PivotTable = cache.CreatePivotTable() table = GridWeb1.WebWorksheets.PivotTables("PivotTable1") table.PivotFields(0).Orientation = PivotFieldOrientation.RowField table.PivotFields(1).Orientation = PivotFieldOrientation.RowField table.PivotFields(2).Orientation = PivotFieldOrientation.ColumnField | PivotFieldOrientation.DataField table.DataBind() Returns the index of the specified PivotCache in the collection Adds a PivotCache from DataTable. The data source Adds a PivotCahe from DataTable using the specified name. The data source The cache name Adds a PivotCache from DataView. The data source Adds a PivotCahe from DataView using the specified name. The data source The cache name Adds a PivotCache from sheet The sheet of source data The range of the sheet Adds a PivotCache from sheet using the specified name. The sheet of source data The range of the sheet The cache name Removes all PivotCache objects and all PivotTable objects in the control. Removes the specified PivotCache object from the PivotCaches and the related PivotTable using the pivotCache as data source. Removes the specified PivotCache object from the PivotCaches and the related PivotTable using the pivotCache as data source. Copies the entire PivotCache to a compatible one-dimensional Array, starting at the specified index of the target array Returns an IEnumerator for the PivotCaches. Gets PivotCache object by index. Gets PivotCache object by name. Gets the parent object for the specified object. Read-only. Gets the number of elements contained in the PivotCaches instance Gets a value indicating whether access to the PivotCaches is synchronized (thread-safe). Gets an object that can be used to synchronize access to the PivotCaches. Represents a field in a PivotTable report. The PivotField object is a member of the collection. NOTE: This class is now obsolete. Instead, please use GridPivotField. This class will be removed after 6 months since Aug. 2014. Aspose apologizes for any inconvenience you may have experienced. [C#] //Gets PivotFields of PivotTable[0] PivotField field1 = GridWeb1.WebWorksheets.PivotTables[0].PivotFields["field1"]; PivotField field2 = GridWeb1.WebWorksheets.PivotTables[0].PivotFields["field2"]; PivotField field3 = GridWeb1.WebWorksheets.PivotTables[0].PivotFields["field3"]; PivotField field4 = GridWeb1.WebWorksheets.PivotTables[0].PivotFields["field4"]; //Sets Location of PivotFields field1.Orientation = PivotFieldOrientation.RowField; field2.Orientation = PivotFieldOrientation.RowField; field3.Orientation = PivotFieldOrientation.ColumnField; field4.Orientation = PivotFieldOrientation.DataField; //Sets function of data field field3.Function = PivotFieldFunction.Sum; //Changes row fields order field2.Position = 1; //Or field1.Position = 2; [VB] 'Gets PivotFields of PivotTable[0] Dim field1 As PivotField = GridWeb1.WebWorksheets.PivotTables(0).PivotFields("field1") Dim field2 As PivotField = GridWeb1.WebWorksheets.PivotTables(0).PivotFields("field2") Dim field3 As PivotField = GridWeb1.WebWorksheets.PivotTables(0).PivotFields("field3") Dim field4 As PivotField = GridWeb1.WebWorksheets.PivotTables(0).PivotFields("field4") 'Sets Location of PivotFields field1.Orientation = PivotFieldOrientation.RowField field2.Orientation = PivotFieldOrientation.RowField field3.Orientation = PivotFieldOrientation.ColumnField field4.Orientation = PivotFieldOrientation.DataField 'Sets function of data field field3.Function = PivotFieldFunction.Sum 'Changes row fields order field2.Position = 1 'Or field1.Position = 2; Gets the data of the specified field. Represents The location of the field in the specified PivotTable report. Represents function used to summarize the PivotTable field (data fields only). The default function is Count. Gets the name. The label text for the pivot field show in report. By default show the name. Represents Position of the field (first, second, third, and so on) among all the fields in its orientation (Rows, Columns, Pages). you shall call the get method after calling of Pivottable.DataBind Represents the order used to sort the specified PivotTable field. NOTE: This class is now obsolete. please use GridPivotFieldFunction Instead. This class will be removed after 6 months since Aug. 2014. Aspose apologizes for any inconvenience you may have experienced. Represents functions used to summarize the PivotTable data field The number of data values.This is the default function. The sum of the values. The average of the values. The largest value. The smallest value. The product of the values. NOTE: This class is now obsolete. please use GridPivotFieldType Instead. This class will be removed after 6 months since Aug. 2014. Aspose apologizes for any inconvenience you may have experienced. Represents The location of the field in the specified PivotTable report. Sets the PivotField to RowField Sets the PivotField to ColumnField Sets the PivotField to PageField Sets the PivotField to DataField Sets the PivotField to HiddenField NOTE: This class is now obsolete. please use GridPivotFieldCollection Instead. This class will be removed after 6 months since Aug. 2014. Aspose apologizes for any inconvenience you may have experienced. Reprents A collection of all the objects in a PivotTable report. [C#] //Gets PivotFields of PivotTable[0] PivotField field1 = GridWeb1.WebWorksheets.PivotTables[0].PivotFields["field1"]; PivotField field2 = GridWeb1.WebWorksheets.PivotTables[0].PivotFields["field2"]; PivotField field3 = GridWeb1.WebWorksheets.PivotTables[0].PivotFields["field3"]; PivotField field4 = GridWeb1.WebWorksheets.PivotTables[0].PivotFields["field4"]; //Sets Location of PivotFields field1.Orientation = PivotFieldOrientation.RowField; field2.Orientation = PivotFieldOrientation.RowField; field3.Orientation = PivotFieldOrientation.ColumnField; field4.Orientation = PivotFieldOrientation.DataField; //Sets function of data field field3.Function = PivotFieldFunction.Sum; //Changes row fields order field2.Position = 1; //Or field1.Position = 2; [VB] 'Gets PivotFields of PivotTable[0] Dim field1 As PivotField = GridWeb1.WebWorksheets.PivotTables(0).PivotFields("field1") Dim field2 As PivotField = GridWeb1.WebWorksheets.PivotTables(0).PivotFields("field2") Dim field3 As PivotField = GridWeb1.WebWorksheets.PivotTables(0).PivotFields("field3") Dim field4 As PivotField = GridWeb1.WebWorksheets.PivotTables(0).PivotFields("field4") 'Sets Location of PivotFields field1.Orientation = PivotFieldOrientation.RowField field2.Orientation = PivotFieldOrientation.RowField field3.Orientation = PivotFieldOrientation.ColumnField field4.Orientation = PivotFieldOrientation.DataField 'Sets function of data field field3.Function = PivotFieldFunction.Sum 'Changes row fields order field2.Position = 1 'Or field1.Position = 2; Copies the entire PivotField to a compatible one-dimensional Array, starting at the specified index of the target array Returns an IEnumerator for the PivotFields. Gets the index of the specified PivotField. Gets the number of elements contained in the PivotFields instance Gets a value indicating whether access to the PivotFields is synchronized (thread-safe). Gets an object that can be used to synchronize access to the PivotFields. Gets a PivotField by index. Gets a PivotField by name. Gets the parent object for the specified object. Read-only. Represents the order used to sort the specified PivotTable field. Rows or Columns organize data ascendable Rows or Columns organize data descendable Rows or Columns organize data natural NOTE: This class is now obsolete. please use GridPivotItem Instead. This class will be removed after 6 months since Aug. 2014. Aspose apologizes for any inconvenience you may have experienced. Represents an item in a PivotTable field. The items are the individual data entries in a field category. The PivotItem object is a member of the PivotItems collection. The PivotItems collection contains all the items in a PivotField object. Compares this instance to a specified object and returns an indication of their relative values. Determines whether two Object instances are equal. Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. Returns a String that represents the current Object Gets the value of the specified item. Represents whether the specified item visible. Gets the parent object for the specified object. Read-only. Gets the name NOTE: This class is now obsolete. please use GridPivotItemCollection Instead. This class will be removed after 6 months since Aug. 2014. Aspose apologizes for any inconvenience you may have experienced. Represents A collection of all the PivotItem objects in a PivotTable field. The items are the individual data entries in a field category. Copies the entire PivotItem to a compatible one-dimensional Array, starting at the specified index of the target array Returns an IEnumerator for the PivotItems. Gets a item by index. Gets a item by name. Gets the parent object for the specified object. Read-only. Gets the number of elements contained in the PivotItems instance Gets a value indicating whether access to the PivotItems is synchronized (thread-safe). Gets an object that can be used to synchronize access to the PivotItems. Represents the source data type. Represents data source from a DataTable object. Represents data source from a DataView object. Represents data source from a WebWorksheet objecet. NOTE: This class is now obsolete. please use GridPivotTable Instead. This class will be removed after 6 months since Aug. 2014. Aspose apologizes for any inconvenience you may have experienced. Represents a PivotTable report on a worksheet. The PivotTable object is a member of the collection. The PivotTables collection contains all the PivotTable objects on a control. [C#] //On the assumption that worksheet "Sheet1" has datas, then creates a PivotTable report base on it. WebWorksheet sourceSheet = GridWeb1.WebWorksheets["Sheet1"]; Aspose.Cells.GridWeb.Data.WebCellArea sourceRange = new WebCellArea(); sourceRange.StartRow = 0; sourceRange.StartColumn = 0; sourceRange.EndRow = 10; sourceRange.EndColumn = 5; PivotCache cache = GridWeb1.WebWorksheets.PivotCaches.Add(sourceSheet, sourceRange); PivotTable table = cache.CreatePivotTable(); table.PivotFields[0].Orientation = PivotFieldOrientation.RowField; table.PivotFields[1].Orientation = PivotFieldOrientation.RowField; table.PivotFields[2].Orientation = PivotFieldOrientation.RowField; table.PivotFields[3].Orientation = PivotFieldOrientation.ColumnField | PivotFieldOrientation.DataField; table.PivotFields[4].Orientation = PivotFieldOrientation.ColumnField; table.PivotFields[5].Orientation = PivotFieldOrientation.ColumnField | PivotFieldOrientation.DataField; table.PivotFields[3].Function = PivotFieldFunction.Count; table.PivotFields[5].Function = PivotFieldFunction.Sum; table.DataBind(); //Creates a PivotTable report from DataView or DataTable. DataView dataView;//Or DataTable dataTable; . . . Sets dataView(dataTable) Value . . . PivotCache cache = GridWeb1.WebWorksheets.PivotCaches.Add(dataView); //Or PivotCache cache = GridWeb1.WebWorksheets.PivotCaches.Add(dataTable); PivotTable table = cache.CreatePivotTable(); table = GridWeb1.WebWorksheets.PivotTables["PivotTable1"]; table.PivotFields[0].Orientation = PivotFieldOrientation.RowField; table.PivotFields[1].Orientation = PivotFieldOrientation.RowField; table.PivotFields[2].Orientation = PivotFieldOrientation.ColumnField | PivotFieldOrientation.DataField; table.DataBind(); [VB] 'On the assumption that worksheet "Sheet1" has datas, then creates a PivotTable report base on it. Dim sourceSheet As WebWorksheet = GridWeb1.WebWorksheets("Sheet1") Dim sourceRange As Aspose.Cells.GridWeb.Data.WebCellArea = New WebCellArea()/ sourceRange.StartRow = 0 sourceRange.StartColumn = 0 sourceRange.EndRow = 10 sourceRange.EndColumn = 5 Dim cache As PivotCache = GridWeb1.WebWorksheets.PivotCaches.Add(sourceSheet,sourceRange) Dim table As PivotTable = cache.CreatePivotTable() table.PivotFields(0).Orientation = PivotFieldOrientation.RowField table.PivotFields(1).Orientation = PivotFieldOrientation.RowField table.PivotFields(2).Orientation = PivotFieldOrientation.RowField table.PivotFields(3).Orientation = PivotFieldOrientation.ColumnField | PivotFieldOrientation.DataField table.PivotFields(4).Orientation = PivotFieldOrientation.ColumnField table.PivotFields(5).Orientation = PivotFieldOrientation.ColumnField | PivotFieldOrientation.DataField table.PivotFields(3).Function = PivotFieldFunction.Count table.PivotFields(5).Function = PivotFieldFunction.Sum table.DataBind() 'Creates a PivotTable report from DataView or DataTable. Dim dataView As DataView ' Or Dim dataTable As DataTable . . Sets dataView(dataTable) Value . . . Dim cache As PivotCache = GridWeb1.WebWorksheets.PivotCaches.Add(dataView) 'Or Dim cache As PivotCache = GridWeb1.WebWorksheets.PivotCaches.Add(dataTable) Dim table As PivotTable = cache.CreatePivotTable() table = GridWeb1.WebWorksheets.PivotTables("PivotTable1") table.PivotFields(0).Orientation = PivotFieldOrientation.RowField table.PivotFields(1).Orientation = PivotFieldOrientation.RowField table.PivotFields(2).Orientation = PivotFieldOrientation.ColumnField | PivotFieldOrientation.DataField table.DataBind() Repesents all fields in PivotTable report. Gets PivotCache object that the report used. Gets name NOTE: This class is now obsolete. please use GridPivotTableCollection Instead. This class will be removed after 6 months since Aug. 2014. Aspose apologizes for any inconvenience you may have experienced. Represents a collection of all the objects [C#] //On the assumption that worksheet "Sheet1" has datas, then creates a PivotTable report base on it. WebWorksheet sourceSheet = GridWeb1.WebWorksheets["Sheet1"]; Aspose.Cells.GridWeb.Data.WebCellArea sourceRange = new WebCellArea(); sourceRange.StartRow = 0; sourceRange.StartColumn = 0; sourceRange.EndRow = 10; sourceRange.EndColumn = 5; PivotCache cache = GridWeb1.WebWorksheets.PivotCaches.Add(sourceSheet, sourceRange); PivotTable table = cache.CreatePivotTable(); table.PivotFields[0].Orientation = PivotFieldOrientation.RowField; table.PivotFields[1].Orientation = PivotFieldOrientation.RowField; table.PivotFields[2].Orientation = PivotFieldOrientation.RowField; table.PivotFields[3].Orientation = PivotFieldOrientation.ColumnField | PivotFieldOrientation.DataField; table.PivotFields[4].Orientation = PivotFieldOrientation.ColumnField; table.PivotFields[5].Orientation = PivotFieldOrientation.ColumnField | PivotFieldOrientation.DataField; table.PivotFields[3].Function = PivotFieldFunction.Count; table.PivotFields[5].Function = PivotFieldFunction.Sum; table.DataBind(); //Creates a PivotTable report from DataView or DataTable. DataView dataView;//Or DataTable dataTable; . . . Sets dataView(dataTable) Value . . . PivotCache cache = GridWeb1.WebWorksheets.PivotCaches.Add(dataView); //Or PivotCache cache = GridWeb1.WebWorksheets.PivotCaches.Add(dataTable); PivotTable table = cache.CreatePivotTable(); table = GridWeb1.WebWorksheets.PivotTables["PivotTable1"]; table.PivotFields[0].Orientation = PivotFieldOrientation.RowField; table.PivotFields[1].Orientation = PivotFieldOrientation.RowField; table.PivotFields[2].Orientation = PivotFieldOrientation.ColumnField | PivotFieldOrientation.DataField; table.DataBind(); [VB] 'On the assumption that worksheet "Sheet1" has datas, then creates a PivotTable report base on it. Dim sourceSheet As WebWorksheet = GridWeb1.WebWorksheets("Sheet1") Dim sourceRange As Aspose.Cells.GridWeb.Data.WebCellArea = New WebCellArea()/ sourceRange.StartRow = 0 sourceRange.StartColumn = 0 sourceRange.EndRow = 10 sourceRange.EndColumn = 5 Dim cache As PivotCache = GridWeb1.WebWorksheets.PivotCaches.Add(sourceSheet,sourceRange) Dim table As PivotTable = cache.CreatePivotTable() table.PivotFields(0).Orientation = PivotFieldOrientation.RowField table.PivotFields(1).Orientation = PivotFieldOrientation.RowField table.PivotFields(2).Orientation = PivotFieldOrientation.RowField table.PivotFields(3).Orientation = PivotFieldOrientation.ColumnField | PivotFieldOrientation.DataField table.PivotFields(4).Orientation = PivotFieldOrientation.ColumnField table.PivotFields(5).Orientation = PivotFieldOrientation.ColumnField | PivotFieldOrientation.DataField table.PivotFields(3).Function = PivotFieldFunction.Count table.PivotFields(5).Function = PivotFieldFunction.Sum table.DataBind() 'Creates a PivotTable report from DataView or DataTable. Dim dataView As DataView ' Or Dim dataTable As DataTable . . Sets dataView(dataTable) Value . . . Dim cache As PivotCache = GridWeb1.WebWorksheets.PivotCaches.Add(dataView) 'Or Dim cache As PivotCache = GridWeb1.WebWorksheets.PivotCaches.Add(dataTable) Dim table As PivotTable = cache.CreatePivotTable() table = GridWeb1.WebWorksheets.PivotTables("PivotTable1") table.PivotFields(0).Orientation = PivotFieldOrientation.RowField table.PivotFields(1).Orientation = PivotFieldOrientation.RowField table.PivotFields(2).Orientation = PivotFieldOrientation.ColumnField | PivotFieldOrientation.DataField table.DataBind() Adds a PivotTable object from the specified PivotCache to a new worksheet The source data Adds a PivotTable object from the specified PivotCache to a new worksheet The source data PivotTable name Adds a PivotTable object from the specified PivotCache to the specified worksheet Adds a PivotTable object from the specified PivotCache to the specified worksheet Removes all PivotTable objects and all PivotCache objects in the control. Removes the specified PivotTable object from the PivotTables and the related PivotCache if it is not used by other PivotTable Removes the specified PivotTable object from the PivotTables and the related PivotCache if it is not used by other PivotTable ReDataBinds data source to the PivotTable report. ReDataBinds data source to all PivotTable report. Returns true if exists pivottable name tableName. Copies the entire PivotTable to a compatible one-dimensional Array, starting at the specified index of the target array Returns an IEnumerator for the PivotTables. Gets a PivotTable object by index. Gets a PivotTable object by name. Gets the parent object for the specified object. Read-only. Gets the number of elements contained in the PivotTables instance Gets a value indicating whether access to the PivotTables is synchronized (thread-safe). Gets an object that can be used to synchronize access to the PivotTables. Sets whether the specific PivotItem in a data field is hidden. the index of the pivotItem in the pivotField. whether the specific PivotItem is hidden Sets whether the specific PivotItem in a data field is hidden. the value of the pivotItem in the pivotField. whether the specific PivotItem is hidden Sets whether the specific PivotItem in a data field is hidden. the name of the pivotItem in the pivotField. whether the specific PivotItem is hidden Represents the function used to summarize the PivotTable data field. Indicates whether the specified PivotTable field is automatically sorted. Indicates whether the specified PivotTable field is autosorted ascending. Represents the PivotField display name. Represents the PivotField index in the PivotFields. Encapsulates a collection of objects. Adds a PivotField Object to the specific type PivotFields. a PivotField Object. the index of the PivotField Object in this PivotFields. Clears all PivotFields. Gets the element at the specified index. The zero based index of the element. The element at the specified index. Moves the item up or down. The number of moving up or down. Move the item up if this is less than zero; Move the item down if this is greater than zero. Gets the string value of the pivot item If the value is null, it will return "" Gets the double value of the pivot item If the value is null or not number ,it will return 0 Gets the date time value of the pivot item If the value is null ,it will return DateTime.MinValue Gets and Sets whether the pivot item is hidden. Gets the value of the pivot item Gets the name of the pivot item. Gets the index of the pivot item in the pivot field Encapsulates a collection of objects. Adds a PivotItem Object to the specific type PivotItems. a PivotItem Object. the index of the PivotItem Object in this PivotItems. Gets the element at the specified index. The zero based index of the element. The element at the specified index. Represents a PivotTable report on a worksheet. The PivotTable object is a member of the collection. The PivotTables collection contains all the PivotTable objects on a control. Gets the specific fields by the field type. the field type. the specific fields Gets the specific field by the field name. the field name. the specific field clear all pivot fields. Adds the field to the specific area. The fields area type. The field index in the base fields. The field position in the specific fields. Adds the field to the specific area. The fields area type. The name in the base fields. The field position in the specific fields.If there is no field named as it, return -1. Refreshes pivottable's data and setting from it's data source. We will gather data from data source to a pivot cache ,then calcualte the data in the cache to the cells. This method is only used to gather all data to a pivot cache. Calculates pivottable's data to cells. Cell.Value in the pivot range could not return the correct result if the method is not been called. This method caclulates data with an inner pivot cache,not original data source. So if the data source is changed, please call RefreshData() method first. Encapsulates a collection of objects. Adds a new PivotTable cache to a PivotCaches collection. The data cell range for the new PivotTable.Example : Sheet1!A1:C8 The cell in the upper-left corner of the PivotTable report's destination range. The name of the new PivotTable report. The new added cache index. Adds a new PivotTable cache to a PivotCaches collection. The source work sheet. The area in the source worksheet. The row of the cell in the upper-left corner of the PivotTable report's destination range. The column of the cell in the upper-left corner of the PivotTable report's destination range. The name of the new PivotTable report. The new added cache index. Adds a new PivotTable cache to a PivotCaches collection. The name of the source worksheet. The area in the source worksheet. The row of the cell in the upper-left corner of the PivotTable report's destination range. The column of the cell in the upper-left corner of the PivotTable report's destination range. The name of the new PivotTable report. The new added cache index. Adds a new PivotTable cache to a PivotCaches collection. The name of the source worksheet. The area in the source worksheet. The cell in the upper-left corner of the PivotTable report's destination range. The name of the new PivotTable report. The new added cache index. Clears all PivotTables. Remove the PivotTable at the specified index. The zero based index of the element. Gets the element at the specified index. The zero based index of the element. The element at the specified index. Only for preserving the drawing object in the template file. Only for preserving the drawing object in the xlsx file. Represents Between operator of conditional format and data validation. Represents Equal operator of conditional format and data validation. Represents GreaterThan operator of conditional format and data validation. Represents GreaterOrEqual operator of conditional format and data validation. Represents LessThan operator of conditional format and data validation. Represents LessOrEqual operator of conditional format and data validation. Represents no comparision. Represents NotBetween operator of conditional format and data validation. Represents NotEqual operator of conditional format and data validation. Represents Sum function. Represents Count function. Represents Average function. Represents Max function. Represents Min function. Represents Product function. Represents Count Nums function. Represents StdDev function. Represents StdDevp function. Represents Var function. Represents Varp function. Presents base pivot field type. Presents row pivot field type. Presents column pivot field type. Presents page pivot field type. Presents data pivot field type. Represents the border position to be set of a cells range. [C#] GridWeb1.WebWorksheets[0].Cells.SetBorders(0, 0, 5, 8, SetBorderPosition.Outline, borderStyle1); [VB] GridWeb1.WebWorksheets(0).Cells.SetBorders(0, 0, 5, 8, SetBorderPosition.Outline, borderStyle1) Top border Bottom border Left border Right border Bottom border HorizontalMiddle borders VerticalMiddle borders Cross borders No borders Represents subtotal function type. Used in the GridWorksheet.CreateSubtotal method. Average Count the numeric cells. Count the non-null cells Max Min Product Sum the interface you need to implement when use server side validation. CustomServerFunction. ViewerStyleTemplate. Default constructor. Load a preset style. Internal used only. Specifies the background color of the active cell. Specifies the background color of the selected cells in multi-select range. Specifies the background color of the active row/column header. Specifies the color of the active cell. Specifies the color of the selected cells in multi-select range. Specifies the color of the active row/column header. NOTE: This class is now obsolete. please use GridTableItemStyle Instead. This class will be removed after 6 months since Aug. 2014. Aspose apologizes for any inconvenience you may have experienced. Inherited from System.Web.UI.WebControls.TableItemStyle. Encapsulates the styles of a WebCell. [C#] ... using System.Web.UI.WebControls; ... ... WebWorksheets sheets = GridWeb1.WebWorksheets; sheets.Clear(); WebWorksheet sheet = sheets[sheets.Add("demo1")]; WebCell cell = sheet.Cells[0,0]; cell.StringValue = "Demo Text"; Aspose.Cells.GridWeb.TableItemStyle style = cell.GetStyle(); style.Font.Size = new FontUnit("72pt"); style.Wrap = false; style.BackColor = Color.Gray; style.BorderStyle = BorderStyle.Solid; style.BorderWidth = new Unit(1, UnitType.Pixel); style.BorderColor = Color.Silver; style.RightBorderStyle.BorderColor = Color.Black; style.RightBorderStyle.BorderStyle = BorderStyle.Solid; style.RightBorderStyle.BorderWidth = new Unit(1, UnitType.Pixel); style.BottomBorderStyle.BorderColor = Color.Black; style.BottomBorderStyle.BorderStyle = BorderStyle.Solid; style.BottomBorderStyle.BorderWidth = new Unit(1, UnitType.Pixel); cell.SetStyle(style); [Visual Basic] ... Imports System.Web.UI.WebControls ... ... Dim sheets As WebWorksheets = GridWeb1.WebWorksheets sheets.Clear() Dim sheet As WebWorksheet = sheets(sheets.Add(__0__)) Dim cell As WebCell = sheet.Cells(0,0) cell.StringValue = "Demo Text" Dim style As Aspose.Cells.GridWeb.TableItemStyle = cell.GetStyle() style.Font.Size = New FontUnit("72pt") style.Wrap = False style.BackColor = Color.Gray style.BorderStyle = BorderStyle.Solid style.BorderWidth = New Unit(1, UnitType.Pixel) style.BorderColor = Color.Silver style.RightBorderStyle.BorderColor = Color.Black style.RightBorderStyle.BorderStyle = BorderStyle.Solid style.RightBorderStyle.BorderWidth = New Unit(1, UnitType.Pixel) style.BottomBorderStyle.BorderColor = Color.Black style.BottomBorderStyle.BorderStyle = BorderStyle.Solid style.BottomBorderStyle.BorderWidth = New Unit(1, UnitType.Pixel) cell.SetStyle(style) Copies from another style object. another style object Merges with another style object. another style object Internal use only. Implementation method Do not call this method directly. Default constructor. Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. A hash code for the current Style. Background image url. Background image attributes. Gets or sets Rotation attribute.

0: Not rotated.

255: Top to Bottom.

-90: Downward.

90: Upward.

You can set 255 or value ranged from -90 to 90.
Gets or sets indent level. Specifies the style of the cell's left border. Specifies the style of the cell's right border. Specifies the style of the cell's top border. Specifies the style of the cell's bottom border. Gets or sets the display format of numbers and dates.
Value Type Format String
0 General General
1 Decimal 0
2 Decimal 0.00
3 Decimal #,##0
4 Decimal #,##0.00
5 Currency $#,##0;($#,##0)
6 Currency $#,##0;[Red]($#,##0)
7 Currency $#,##0.00;($#,##0.00)
8 Currency $#,##0.00;[Red]($#,##0.00)
9 Percentage 0%
10 Percentage 0.00%
11 Scientific 0.00E+00
12 Fraction # ?/?
13 Fraction # ??/??
14 Date m/d/yyyy
15 Date d-mmm-yy
16 Date d-mmm
17 Date mmm-yy
18 Time h:mm AM/PM
19 Time h:mm:ss AM/PM
20 Time h:mm
21 Time h:mm:ss
22 Time m/d/yyyy h:mm
37 Accounting #,##0;(#,##0)
38 Accounting #,##0;[Red](#,##0)
39 Accounting #,##0.00;(#,##0.00)
40 Accounting #,##0.00;[Red](#,##0.00)
41 Accounting _ * #,##0_ ;_ * (#,##0)_ ;_ * "-"_ ;_ @_
42 Currency _ $* #,##0_ ;_ $* (#,##0)_ ;_ $* "-"_ ;_ @_
43 Accounting _ * #,##0.00_ ;_ * (#,##0.00)_ ;_ * "-"??_ ;_ @_
44 Currency _ $* #,##0.00_ ;_ $* (#,##0.00)_ ;_ $* "-"??_ ;_ @_
45 Time mm:ss
46 Time [h]:mm:ss
47 Time mm:ss.0
48 Scientific ##0.0E+00
49 Text @
Gets or sets the custom format, null or empty string means no custom format. Gets or sets a value indicating whether a cell can be modified or not when its worksheet is protected. When its worksheet is protected and IsLocked is true, the cell can not be edit. When its worksheet is protected and IsLocked is false, the cell can be edit. Licenses the component. A stream that contains the license.

Use this method to load a license from a stream.

[C#] License license = new License(); license.SetLicense(myStream); [Visual Basic] Dim license as License = new License license.SetLicense(myStream)
Licenses the component.

Tries to find the license in the following locations:

1. Explicit path.

2. The folder that contains the Aspose component assembly.

3. The folder that contains the client's calling assembly.

4. The folder that contains the entry (startup) assembly.

5. An embedded resource in the client's calling assembly.

Note:On the .NET Compact Framework, tries to find the license only in these locations:

1. Explicit path.

2. An embedded resource in the client's calling assembly.

In this example, an attempt will be made to find a license file named MyLicense.lic in the folder that contains the component, in the folder that contains the calling assembly, in the folder of the entry assembly and then in the embedded resources of the calling assembly. [C#] License license = new License(); license.SetLicense("MyLicense.lic"); [Visual Basic] Dim license As License = New License license.SetLicense("MyLicense.lic") Can be a full or short file name or name of an embedded resource. Use an empty string to switch to evaluation mode.
Represents customer side validation type. AnyValue represents no validation. Any value validation type. Show dropdown list. List validation type. Free List validation type. Custom validation type, using regular expression. TRUE or FALSE Number ( Integer or Double ). Integer Date yyyy-MM-dd DateTime (yyyy-MM-dd or yyyy-MM-dd hh:mm:ss). Time (hh:mm:ss). textlength customstr Custom javascript function validation. Use the ClientValidationFunction property to specify the client validation function's name. The function should be declared as this formation:
function customValicationFunction(source, value)
The parameter "source" is the cell object. The parameter "value" is the string value of a cell to be checked. The function should returns true if the value is valid.
Custom server-side function validation. Use the CustomServerFunction property to specify the serverside validation . below is the example code:
first define class which implement GridCustomServerValidation class myservervali : GridCustomServerValidation
...... then add validation var gridValidationCollection = this.GridWeb.ActiveSheet.Validations;
GridValidation gv = gridValidationCollection.Add(new GridCellArea(1, 1, 2, 2));
gv.ValidationType = GridValidationType.CustomServerFunction; gv.ServerValidation = new myservervali(); then set ClientValidationFunction to deal with client logic when server validation fails and return message gv.ClientValidationFunction = "ValidationErrorClientFunction"; the client function shall be declared like this: function ValidationErrorClientFunction(cell,msg) please check demo page for a detail reference
Display the cell as a checkbox. And the value of the cell is True of False. NOTE: This class is now obsolete. please use GridValidation Instead. This class will be removed after 6 months since Aug. 2014. Aspose apologizes for any inconvenience you may have experienced. Loads value list from a DataView object. You can specify the value field and text field of the DataView. Each value and text pair will be combined to one string, with a comma between them. The DataView object. The value field name. The text field name. Indicates whether to add a value prefix to each displayed text. Gets or sets whether the cell value is required. Gets or sets the validation type. Gets or sets the validation op type ,Between/NotBetween/Equal/NotEqual/Greater/GreaterOrEqual/Less/LessOrEqual. Gets the value list object. Gets or sets the regular expression string. Gets or sets the client validation javascript function name. Use the ClientValidationFunction property to specify the client validation function's name. The function should be declared as this formation:
function customValicationFunction(source, value)
The parameter "source" is the cell object. The parameter "value" is the string value of a cell to be checked. The function should returns true if the value is valid.
Gets or sets the operator target value 1 Gets or sets the operator target value 2 Design time used only. Collapse type of a table's border object. Not set. Collapsed. Separated. BindColumn. Defalut constructor. Internal used only. Gets or sets the data field name string. Gets of sets the width of the column.only pixel or point accept Gets or sets the style of the column. Gets or sets the alternative style of the column. Gets or sets whether to use the alternative style for the column. Gets or sets the style of the column. Gets or sets the number type of the column. The custom format string. Gets or sets the validation object of the column. The caption of the column. Indicates whether the column is readonly. Indicates whether the user can click the column header to sort by this field. Indicates whether the column is created automatically. If true, the column will be deleted when user change the datasource in the design time. Design time used only. The command name of the column. A CellCommand Hyperlink will be created in the bound cell if the CommandName property is set. The displaying command text of the column. If set to null, the cell will use the field value as the command text. The image url of the command hyperlink. BindColumnCollection. Copies to an array. Gets a enumerator. Removes at the specified index. Inserts an bind column object. Remove an bind column object. Indicates whether the bind column is in the collection. Clears the colleciton. Gets the index of the specified bind column object. Adds the specified bind column object to the collection. Gets the bind column by an integer index or a data field name. Internal used only. Gets the count of the collection. Internal used only. Alway true. Always true. Represents the type of a custom command. The custom command will be rendered as a command button in the command bar. The custom command will be rendered as a context menu item. Represents a custom command button in the tab bar of the GridWeb control. [C#] CustomCommandButton button = new CustomCommandButton(); button.Command = "MyCommand"; button.ImageUrl = "images/button1.gif"; GridWeb1.CustomCommandButtons.Add(button); [VB] Dim button As CustomCommandButton = New CustomCommandButton() button.Command = "MyCommand" button.ImageUrl = "images/button1.gif" GridWeb1.CustomCommandButtons.Add(button) Default constructor. Internal used only. Internal used only. Gets or sets the rendering type of the command. The type can be command button or context menu item. Gets or sets the command name. Gets or sets the alternative text of the command button. Gets or sets the command button's image url. If sets to null or empty string, the button will only display it's text. Gets or sets the tooltip of the command button. Gets or sets the click event handler at client side. Width of the button. Indicates whether to discard user input at client browser when user click this button. Could be used as an "undo" action. Represents the collection of CustomCommandButton. [C#] CustomCommandButton button = new CustomCommandButton(); button.Command = "MyCommand"; button.ImageUrl = "images/button1.gif"; GridWeb1.CustomCommandButtons.Add(button); [VB] Dim button As CustomCommandButton = New CustomCommandButton() button.Command = "MyCommand" button.ImageUrl = "images/button1.gif" GridWeb1.CustomCommandButtons.Add(button) Removes at the index. Index. Inserts a button at the index. Index. The CustomCommandButton object. Removes the custom command button object. The custom command button object. Indicates whether the custom command button object is in the collection. Indicates whether the custom command button object is in the collection. True of false. Clears the collection. Gets the index of the button. The button object. The index. Add a custom command button object to the collection. The custom command button object. The index. Copies the collection to an array. The array. The start index of the array. Gets a IEnumerator object of the collection. The IEnumerator object. Gets a custom command button object at the index. Internal used only. Internal used only. Internal used only. Gets the count of the collection. Internal used only. Bind the control and all its child contorls to the its datasource. refresh all the chart image for the active worksheet . Imports from an excel file. The excel file's name. Loads data from a CSV file. The file's name. Loads data from a CSV file stream. The file stream. Loads data from a HTML file. The file's name. Loads data from a HTML file stream. The file stream. Loads data from a SpreadSheetML file. The file's name. Loads data from a SpreadSheetML file stream. The file's stream. Imports from an excel file stream, including disk file stream or memory stream. The excel file's stream, including disk file stream or memory stream. Saves the worksheets to an excel file with Excel 2003 format. The name of the target file to write to. Saves the worksheets to an excel file. The stream to write to. The file format(Excel2003, Excel2007, CSV, SpreadsheetML) Saves data to a CSV file. The file's name. Saves data to a CSV file stream. The file stream. Saves data to a HTML file. The file's name. Saves data to a HTML file stream. The file stream. Saves data to a SpreadSheetML file. The file's name. Saves data to a SpreadSheetML file stream. The file stream. Saves the worksheets to an excel file. The stream to write to. The file format(Excel2003, Excel2007, CSV, SpreadsheetML) Saves the worksheets to an excel file. The name of the target file to write to. The file format(Excel2003, Excel2007, CSV, SpreadsheetML) Saves current style data of the control to an xml file. Can be used to create your customized style file. The style file's name. Calculates the result of formulas. Gets or sets the page size in paging mode. When in paging mode, the control will display PageSize rows of data once, and display the page select control in the tab bar. Gets or sets whether to enable the paging after data filtered,will take affect when EnablePaging is true. When sets to true, the control will paging based on filtered data,the default value is false. Gets or sets whether to enable the control's paging mode. When sets to true, the control will display PageSize rows of data once, and display the page select control in the tab bar. Gets or sets whether to show the default grid lines of the cells. Gets or sets whether to show the submit button. Gets or sets whether to show the save button. Gets or sets whether to show the undo button. Gets or sets the default grid line's color. [C#] GridWeb1.DefaultGridLineColor = Color.Red; [Visual Basic] GridWeb1.DefaultGridLineColor = Color.Red Gets or sets whether to enable customer side double-click event. When sets to true, the control will receive customer side double-click events and you may handle these events on the server side. Otherwise the control will ignore any double-click events. Gets or sets whether to force customer side validation. When sets to true, data will not post to server until all input fields are valid. Gets or sets the control's default font name. [C#] GridWeb1.DefaultFontName = "Arial"; [Visual Basic] GridWeb1.DefaultFontName = "Arial" Gets or sets the control's default font size. [C#] GridWeb1.DefaultFontSize = new System.Web.UI.WebControls.FontUnit("10pt"); [Visual Basic] GridWeb1.DefaultFontSize = New System.Web.UI.WebControls.FontUnit("10pt") Gets or sets the control's edit mode. When sets to true, the control's cells are editable, and the "save" and the "undo" icon are displayed. When sets to false, the control's cells are readonly, and the "save" and the "undo" icon are not displayed. Gets or sets whether to enable the client side style dialogbox. When sets to true, the user can use the style dialogbox to set a cell's style by selecting the "Format Cell..." from the popup menu. Gets or sets whether to enable the client side freezing operations. When sets to true, the user can use the right-click menu to freeze/unfreeze panes. Gets or sets whether to enable the client side column operations. When sets to true, the user can use the right-click menu to add/remove columns. Gets or sets whether to enable the client side row operations. When sets to true, the user can use the right-click menu to add/remove rows. Gets or sets whether to enable the client side merge operations. When sets to true, the user can use the right-click menu to merge/unmerge cells. Gets or sets whether to enable the client side resize column and row. When sets to true, the user can resize the column and row at client side. Gets or sets the active cell of the current sheet. Changed to be writable since version 1.9.0.1. Gets or sets the active sheet index. Equal to the WebWorksheets.ActiveSheetIndex. Gets the active sheet Gets or sets the position of the scroll bar of the grid's view panel. Gets or sets the position of the scroll bar of the grid's view panel. Specifies the background color of the active cell. Specifies the background color of the selected cells in multi-select range. Specifies the background color of the active row/column header. Specifies the color of the active cell. Specifies the color of the selected cells in multi-select range. Specifies the color of the active row/column header. Gets or sets the style of the tab bar. Specifies the style of the active tab. Specifies the color of the scroll bar of the control. Specifies the color of the scrollbar's arrow button. Gets or sets the web path of the script/image files of the control. For example: "http://localhost/acw_client". You may also set this value in the web.config file. Add this section to the <configuration> section:
<appSettings>

<add key="aspose.cells.gridweb.acw_client_path" value="/acw_client/" />

</appSettings>
Gets or sets the web url of the language file of the control. For example: "/acw_client/lang_en.js".
By default, a built-in english file is used.
Gets the collection of the cells that modified by the client. Gets or sets whether load cells data in asynchronous way,suggest to apply for one sheet with more than 10000 cells. Gets or sets whether to show grouprows . Gets or sets the maximum display column index(zero based) of the web sheet. The control uses the greater value of MaxColumn and sheet data's max column. [C#] // Creates a 4x4 "display window". GridWeb1.MinRow = 2; GridWeb1.MaxRow = 5; GridWeb1.MinColumn = 3; GridWeb1.MaxColumn = 6; [Visual Basic] ' Creates a 4x4 "display window". GridWeb1.MinRow = 2 GridWeb1.MaxRow = 5 GridWeb1.MinColumn = 3 GridWeb1.MaxColumn = 6 Gets or sets the minimum display row index(zero based) of the web sheet. The control uses the smaller value of MinRow and sheet data's min row. [C#] // Creates a 4x4 "display window". GridWeb1.MinRow = 2; GridWeb1.MaxRow = 5; GridWeb1.MinColumn = 3; GridWeb1.MaxColumn = 6; [Visual Basic] ' Creates a 4x4 "display window". GridWeb1.MinRow = 2 GridWeb1.MaxRow = 5 GridWeb1.MinColumn = 3 GridWeb1.MaxColumn = 6 Gets or sets the maximum display row index(zero based) of the web sheet. The control uses the greater value of MaxRow and sheet data's max row. [C#] // Creates a 4x4 "display window". GridWeb1.MinRow = 2; GridWeb1.MaxRow = 5; GridWeb1.MinColumn = 3; GridWeb1.MaxColumn = 6; [Visual Basic] ' Creates a 4x4 "display window". GridWeb1.MinRow = 2 GridWeb1.MaxRow = 5 GridWeb1.MinColumn = 3 GridWeb1.MaxColumn = 6 Gets or sets the frame style of the control. Gets or sets the header bar style of the control. Gets or sets the data view panel's style. Gets or sets the style of the bottom bar of the control. Gets or sets whether to apply metal light effect. Gets or sets the preset style. [C#] GridWeb1.PresetStyle = PresetStyle.Traditional1; [Visual Basic] GridWeb1.PresetStyle = PresetStyle.Traditional1 Gets or sets the session mode of the grid. There are 3 type of session mode:
1. Session(default): Use system session to store sheet data.
Generally the asp.net uses InProc session state. The grid also supports "StateServer" out process session state and SQLServer session state.
2. ViewState: Use page's viewstate to store sheet data.
3. Custom: Use LoadCustomData and SheetDataUpdated events to store/recover sheet data.
When using SessionMode.ViewState, the grid will store sheets data in the page's view state. This will decrease the server's memory usage, but the page's size will be larger and it will impact the overall performance. [C#] GridWeb1.SessionMode = SessionMode.ViewState; [Visual Basic] GridWeb1.SessionMode = SessionMode.ViewState
Gets or sets the custom style file name. [C#] GridWeb1.CustomStyleFileName = "c:\\style\\mystyle.xml"; [Visual Basic] GridWeb1.CustomStyleFileName = "c:\\style\\mystyle.xml" The custom style file is an XML file. When sets the file name, the file will be loaded immediately. Hear is the content of the "standard preset style" ------------------------------------------------------- <Aspose.Cells.GridWeb.ViewerStyleTemplate runat="server" HeaderBarWidth="30pt" ScrollBarBaseColor="" FrameTableStyle-BorderStyle="Solid" FrameTableStyle-LeftBorderStyle-BorderWidth="" FrameTableStyle-LeftBorderStyle-BorderColor="" FrameTableStyle-RightBorderStyle-BorderWidth="" FrameTableStyle-RightBorderStyle-BorderColor="" FrameTableStyle-BorderWidth="1px" FrameTableStyle-CellSpacing="0" FrameTableStyle-BorderColor="Gray" FrameTableStyle-CellPadding="0" FrameTableStyle-TopBorderStyle-BorderWidth="" FrameTableStyle-TopBorderStyle-BorderColor="" FrameTableStyle-BottomBorderStyle-BorderWidth="" FrameTableStyle-BottomBorderStyle-BorderColor="" HeaderBarStyle-LeftBorderStyle-BorderStyle="Solid" HeaderBarStyle-LeftBorderStyle-BorderWidth="1px" HeaderBarStyle-LeftBorderStyle-BorderColor="White" HeaderBarStyle-VerticalAlign="Middle" HeaderBarStyle-RightBorderStyle-BorderStyle="Solid" HeaderBarStyle-RightBorderStyle-BorderWidth="1px" HeaderBarStyle-RightBorderStyle-BorderColor="Gray" HeaderBarStyle-BorderWidth="1px" HeaderBarStyle-Font-Size="10pt" HeaderBarStyle-BorderColor="Gray" HeaderBarStyle-BorderStyle="Solid" HeaderBarStyle-HorizontalAlign="Center" HeaderBarStyle-ForeColor="Black" HeaderBarStyle-TopBorderStyle-BorderStyle="Solid" HeaderBarStyle-TopBorderStyle-BorderWidth="1px" HeaderBarStyle-TopBorderStyle-BorderColor="White" HeaderBarStyle-BackColor="#E0E0E0" HeaderBarStyle-BottomBorderStyle-BorderStyle="Solid" HeaderBarStyle-BottomBorderStyle-BorderWidth="1px" HeaderBarStyle-BottomBorderStyle-BorderColor="Gray" ViewTableStyle-LeftBorderStyle-BorderWidth="" ViewTableStyle-LeftBorderStyle-BorderColor="" ViewTableStyle-LayoutFixed="Fixed" ViewTableStyle-RightBorderStyle-BorderWidth="" ViewTableStyle-RightBorderStyle-BorderColor="" ViewTableStyle-BorderWidth="0px" ViewTableStyle-CellSpacing="0" ViewTableStyle-CellPadding="0" ViewTableStyle-TopBorderStyle-BorderWidth="" ViewTableStyle-TopBorderStyle-BorderColor="" ViewTableStyle-BottomBorderStyle-BorderWidth="" ViewTableStyle-BottomBorderStyle-BorderColor="" BottomTableStyle-LeftBorderStyle-BorderWidth="" BottomTableStyle-LeftBorderStyle-BorderColor="" BottomTableStyle-LayoutFixed="Fixed" BottomTableStyle-RightBorderStyle-BorderWidth="" BottomTableStyle-RightBorderStyle-BorderColor="" BottomTableStyle-BorderWidth="0px" BottomTableStyle-CellSpacing="0" BottomTableStyle-CellPadding="1" BottomTableStyle-TopBorderStyle-BorderStyle="Solid" BottomTableStyle-TopBorderStyle-BorderWidth="1px" BottomTableStyle-TopBorderStyle-BorderColor="Gray" BottomTableStyle-BottomBorderStyle-BorderWidth="" BottomTableStyle-BottomBorderStyle-BorderColor="" HeaderBarHeight="15pt" ActiveTabStyle-LeftBorderStyle-BorderWidth="" ActiveTabStyle-LeftBorderStyle-BorderColor="" ActiveTabStyle-RightBorderStyle-BorderWidth="" ActiveTabStyle-RightBorderStyle-BorderColor="" ActiveTabStyle-Height="15pt" ActiveTabStyle-BorderWidth="1px" ActiveTabStyle-Font-Size="10pt" ActiveTabStyle-BorderColor="Gray" ActiveTabStyle-ForeColor="Black" ActiveTabStyle-TopBorderStyle-BorderWidth="" ActiveTabStyle-TopBorderStyle-BorderColor="" ActiveTabStyle-BackColor="White" ActiveTabStyle-BottomBorderStyle-BorderWidth="" ActiveTabStyle-BottomBorderStyle-BorderColor="" HeaderBarTableStyle-LeftBorderStyle-BorderWidth="" HeaderBarTableStyle-LeftBorderStyle-BorderColor="" HeaderBarTableStyle-LayoutFixed="Fixed" HeaderBarTableStyle-RightBorderStyle-BorderWidth="" HeaderBarTableStyle-RightBorderStyle-BorderColor="" HeaderBarTableStyle-BorderWidth="0px" HeaderBarTableStyle-CellSpacing="0" HeaderBarTableStyle-BorderCollapse="Separate" HeaderBarTableStyle-CellPadding="0" HeaderBarTableStyle-TopBorderStyle-BorderWidth="" HeaderBarTableStyle-TopBorderStyle-BorderColor="" HeaderBarTableStyle-BottomBorderStyle-BorderWidth="" HeaderBarTableStyle-BottomBorderStyle-BorderColor="" TabStyle-LeftBorderStyle-BorderWidth="" TabStyle-LeftBorderStyle-BorderColor="" TabStyle-RightBorderStyle-BorderWidth="" TabStyle-RightBorderStyle-BorderColor="" TabStyle-Height="15pt" TabStyle-BorderWidth="1px" TabStyle-Font-Size="10pt" TabStyle-BorderColor="Gray" TabStyle-ForeColor="Black" TabStyle-TopBorderStyle-BorderWidth="" TabStyle-TopBorderStyle-BorderColor="" TabStyle-BackColor="#E0E0E0" TabStyle-BottomBorderStyle-BorderWidth="" TabStyle-BottomBorderStyle-BorderColor="" ScrollBarArrowColor=""></Aspose.Cells.GridWeb.ViewerStyleTemplate> Gets or sets the header bar's style. Gets or sets the width( System.Web.UI.WebControl.Unit ) of the control. [C#] GridWeb1.Width = new System.Web.UI.WebControls.Unit(320, System.Web.UI.WebControls.UnitType.Point); GridWeb1.Height = new System.Web.UI.WebControls.Unit(240, System.Web.UI.WebControls.UnitType.Point); [Visual Basic] GridWeb1.Width = New System.Web.UI.WebControls.Unit(320, System.Web.UI.WebControls.UnitType.Point) GridWeb1.Height = New System.Web.UI.WebControls.Unit(240, System.Web.UI.WebControls.UnitType.Point) Gets or sets the height( System.Web.UI.WebControl.Unit ) of the control. [C#] GridWeb1.Width = new System.Web.UI.WebControls.Unit(320, System.Web.UI.WebControls.UnitType.Point); GridWeb1.Height = new System.Web.UI.WebControls.Unit(240, System.Web.UI.WebControls.UnitType.Point); [Visual Basic] GridWeb1.Width = New System.Web.UI.WebControls.Unit(320, System.Web.UI.WebControls.UnitType.Point) GridWeb1.Height = New System.Web.UI.WebControls.Unit(240, System.Web.UI.WebControls.UnitType.Point) Gets or sets the width( System.Web.UI.WebControl.Unit ) or the left header bar of the control. [C#] GridWeb1.HeaderBarWidth = new System.Web.UI.WebControls.Unit(32, System.Web.UI.WebControls.UnitType.Point); GridWeb1.HeaderBarHeight = new System.Web.UI.WebControls.Unit(24, System.Web.UI.WebControls.UnitType.Point); [Visual Basic] GridWeb1.HeaderBarWidth = New System.Web.UI.WebControls.Unit(32, System.Web.UI.WebControls.UnitType.Point) GridWeb1.HeaderBarHeight = New System.Web.UI.WebControls.Unit(24, System.Web.UI.WebControls.UnitType.Point) Gets or sets the height( System.Web.UI.WebControl.Unit ) of the top header bar of the control. [C#] GridWeb1.HeaderBarWidth = new System.Web.UI.WebControls.Unit(32, System.Web.UI.WebControls.UnitType.Point); GridWeb1.HeaderBarHeight = new System.Web.UI.WebControls.Unit(24, System.Web.UI.WebControls.UnitType.Point); [Visual Basic] GridWeb1.HeaderBarWidth = New System.Web.UI.WebControls.Unit(32, System.Web.UI.WebControls.UnitType.Point) GridWeb1.HeaderBarHeight = New System.Web.UI.WebControls.Unit(24, System.Web.UI.WebControls.UnitType.Point) Specifies whether to show the command bar(includes command bar and tab bar) at the top of the control. Gets or sets a value indicating whether the horizontal scroll bar is hidden. Specifies whether to show a loading dialogbox while postbacking to server. Specifies whether to wrap content in the cell span. Gets or sets a value indicating whether the vertical scroll bar is hidden. whether Gridweb shows edit box toolbar as in MS-EXCEL.if enable ,a edit box for current cell will display in Gridweb. if we enable this feature, we need to import jquery js library in your aspx files to support this new feature. all the latest jquery version is ok. etc. Gets or sets whether the tab navigation button is show,the default value is true. Gets or sets whether the Chart image is updated while updating the cell value.the default is true Gets or sets whether the hidden row is rendered in GridControl,the default value is false. if you need to unhide the hidden row latter ,you shall set it as true Gets or sets whether gridweb use client page height as control height ,suitable for when set Height="100%",default value is false Gets or sets whether GridWeb will do the default save operation ,the default value is true. Occurs when the "submit" button is clicked. Occurs when the "save" button is clicked. Occurs when the "undo" button is clicked. Occurs when the sheet tab is clicked. Occurs when user clicks a custom command button. Occurs when the row header is double-clicked. Occurs when the column header is double-clicked. Occurs before the column to be filtered. Occurs after the column filtered. Occurs when the cell is double-clicked. Occurs when the cell is clicked,and need to do ajaxcallback for this event. Occurs when the cell is modified in ajaxcall. Occurs when the control has loaded the posted data and updated the sheet data. Fires when the control's SessionMode is set to Custom and needs to load sheet data. You may handle this event in Custom Session mode to load sheet data from file or database. Fires when the ajax update of the control finished.(the EnableAJAX shall be set to true) Occurs when user insert a row from client-side menu. Occurs when user has deleted a row from client-side menu. Occurs when user is trying to delete a row from the client-side menu. You may handle this event and throw a RejectDeleteException exception to cancel a deleting operation. Occurs when user insert a column from client-side menu. Occurs when user delete a column from client-side menu. Occurs when user is trying to delete a column from the client-side menu. You may handle this event and set the cancel parameter to True to cancel a deleting operation. Occurs when a cell's command hyperlink is clicked. When this event is fired, its parameter e.Argument contains the command's name. Occurs when a cell's input value error. Occurs when the control's sheet page index changed. Gets or sets the client side function to be called when a cell is selected. The client function should be declared like this:
function MyOnSelectCell(cell)
{
GridWeb1.setCellValueByCell(cell, "test");
}

Note: You may use the "this" pointer in the client function to point the grid control which fires the event.
Gets or sets the client side function to be called after page index changing.only take effect when EnablePaging is true. The client function should be declared like this:
function MyOnPageChange(index)
{
console.log("current page is:"+index);
}

Note: You may use the "this" pointer in the client function to point the grid control which fires the event.
Gets or sets the client function to be called before the control is submitted at client side. The client function should be declared like this:
function MyOnSubmit(arg, cancelEdit)
{
return true;
}
The arg is the submit argument, contains the command to be post to the server. The cancelEdit is boolean value indicates whether the control has discarded the user input before submit. The control will continue submitting if the function returns true.
Note: You may use the "this" pointer in the client function to point the grid control which fires the event.
Gets or sets the session store path when session mode is ViewState, It is a relative path to the current web application Base Directory. etc: gridweb.SessionStorePath="mytempdir/session"; then it will store session data in mytempdir/session of current application Base Directory Gets or sets the client function to be called before the page is submitted at client side. Gets or sets the client side function to be called when a cell is selected. The client function should be declared like this:
function MyOnSelectCellAjaxCallBack(cell,customerdata)
{

}

Note: You may use the "this" pointer in the client function to point the grid control which fires the event.
Gets or sets the client side function to be called when a shape is selected. The client function should be declared like this:
function MyOnSelectShape(shape)
{
var name=shape.getAttribute("namevalue")
var text=shape.getAttribute("textvalue")
var value=shape.getAttribute("controlvalue")
var type=shape.getAttribute("msotype")
}

Note: You may use the "this" pointer in the client function to point the grid control which fires the event.
Gets or sets the client side function to be called when a cell is unselected. The client function should be declared like this:
function MyOnUnselectCell(cell)
{
GridWeb1.setCellValueByCell(cell, "test");
}

Note: You may use the "this" pointer in the client function to point the grid control which fires the event.
Gets or sets the client side function to be called when a cell is double clicked. The client function should be declared like this:
function MyOnDoubleClickCell(cell)
{
GridWeb1.setCellValueByCell(cell, "test");
}

Note: You may use the "this" pointer in the client function to point the grid control which fires the event.
Gets or sets the client side function name to be called when a cell's validation is failed. The client function should be declared like this:
function MyOnCellError(cell)
{
alert(GridWeb1.getCellValueByCell(cell));
}

Note: You may use the "this" pointer in the client function to point the grid control which fires the event.
Gets or sets the client side function name to be called when a cell's value is updated. The client function should be declared like this:
function MyOnCellUpdated(cell)
{
alert(this.getCellValueByCell(cell));
}

Note: You may use the "this" pointer in the client function to point the grid control which fires the event.
Gets or sets the client side function name to be called when ajaxcall finished. The client function should be declared like this:
function GridAjaxcallFinished()
{
alert(this.id+" ajaxcall finished ");
}

Note: You may use the "this" pointer in the client function to point the grid control which fires the event.
Gets or sets the client side function name to be called when the grid is initialized. The client function should be declared like this:
function MyOnGridInit(grid)
{
alert("The grid is initialized: " + grid.id);
}

Note: You may use the "this" pointer in the client function to point the grid control which fires the event.
Gets or sets the client side function to be called when a row is double clicked. The client function should be declared like this:
function MyOnRowDoubleClick(row)
{
alert(row);
}

Note: You may use the "this" pointer in the client function to point the grid control which fires the event.
Gets or sets the client side function to be called when the context menu will be shown. The client function should be declared like this:
function onContextMenuShow()
{
var menu = event.srcElement;
menu.setItemVisibility("Delete", "block");
menu.setItemVisibility("Update", "none");
}

Note: You may use the "this" pointer in the client function to point the grid control which fires the event.
Gets a value indicating whether gridweb is being loaded in response to a client postback, or if it is being loaded and accessed for the first time. Represents user's custom calculation engine to extend the default calculation engine of Aspose.Cells. Get the release version. The release version. Saves current style data of the control to an xml file. Can be used to create your customized style file. The style file's name. Gets the select cells collection. The exception that is thrown when Aspose.Cells.GridWeb specified error occurs. NOTE: This class is now obsolete. please use GridWorksheet Instead. This class will be removed after 6 months since Aug. 2014. Aspose apologizes for any inconvenience you may have experienced. Represents a web worksheet. [C#] ... using System.Web.UI.WebControls; ... ... WebWorksheets Worksheets = GridWeb1.WebWorksheets; WebCells cells = Worksheets[0].Cells; //Sets default row height cells.StandardHeight = new Unit(16, UnitType.Point); //Sets row height cells.SetRowHeight(2, new Unit(20, UnitType.Point)); //Sets default colum width cells.StandardWidth = new Unit(50, UnitType.Point); //Sets column width cells.SetColumnWidth(3, new Unit(80, UnitType.Point)); //Merge cells cells.Merge(5, 4, 2, 2); //Import data DataSet1 ds1 = new DataSet1(); for (int i =0; i<16; i++) { DataSet1.Table1Row row = ds1.Table1.NewTable1Row(); row["c1"] = "hello1"; row["c2"] = i; row["c3"] = "data"; ds1.Table1.AddTable1Row(row); } GridWeb1.WebWorksheets.ImportDataView(ds1.Table1.DefaultView, null, null); //Import from excel file Worksheets.ImportExcelFile("c:\\file1.xls"); [Visual Basic] Imports System.Web.UI.WebControls ... ... Dim Worksheets As WebWorksheets = GridWeb1.WebWorksheets Dim cells As WebCells = Worksheets(0).Cells 'Sets default row height cells.StandardHeight = New Unit(16, UnitType.Point) 'Sets row height cells.SetRowHeight(2,New Unit(20,UnitType.Point)) 'Sets default colum width cells.StandardWidth = New Unit(50, UnitType.Point) 'Sets column width cells.SetColumnWidth(3,New Unit(80,UnitType.Point)) 'Merge cells cells.Merge(5, 4, 2, 2) 'Import data Dim ds1 As DataSet1 = New DataSet1() Dim i As Integer For i = 0 To 15 Dim row As DataSet1.Table1Row = ds1.Table1.NewTable1Row() row("c1") = "hello1" row("c2") = i row("c3") = "data" ds1.Table1.AddTable1Row(row) Next GridWeb1.WebWorksheets.ImportDataView(ds1.Table1.DefaultView, Nothing, Nothing) 'Import from excel file Worksheets.ImportExcelFile("c:\\file1.xls") After setting a datasource for the worksheet, call this method to generate the bind columns automatically. Updates the binding datasource record's property value according to the cell's value. cell.PutValue(23.11); sheet.UpdateBindCellValue(cell); The cell object. Commits the new added bind row and add it to the datasource. The row index of the new row. If no row is created, returns -1. Cancels and deletes the new added bind row. The row index. If there is no new created bind row, returns -1. Makes a range of cells editable. http://docs.aspose.com:8082/docs/display/cellsnet/Protecting+Cells Make all cells read only by calling the SetAllCellsReadonly method. then call this method to Specify the range of cells that to be editable The start row of the range. The start column of the range. The number of the rows. The number of the columns. Groups rows. The first row index to be grouped. The last row index to be grouped. Groups rows. The first row index to be grouped. The last row index to be grouped. Specifies if the grouped rows are hidden. Creates subtotal in the sheet. The row index of the column name row. The number of the data rows. The column index of the column to be grouped. The subtotal function type. The column indexes to be subtotaled. The label of subtotal function. The style of the grand total line. The style of the subtotal line. The number type of the subtotal result cells. The custome format string of the subtotal result cells. Can be null. Bind the sheet to the DataSource. Creates a new bind row and bind to the datasource. The row index of the new row. If no row is created, returns -1. Deletes a bind row. The row index. The deleted row index. If no bind row is deleted, returns -1. Copies from another worksheet object. The other sheet. Makes a range of cells readonly. http://docs.aspose.com:8082/docs/display/cellsnet/Protecting+Cells First make all cells editable by calling the SetAllCellsEditable method. then call this method to Specify the range of cells that to be readonly The start row of the range. The start column of the range. The number of the rows. The number of the columns. Autofits the column width. This method autofits a column based on content in a range of cells within the column from startRow to endRow. AutoFitColumn is an imprecise function. column index, zero based start row index, zero based end row index, zero based Autofits the column width. Column index. AutoFitColumn is an imprecise function. Internal used only. Gets the index of itself within the . Gets or sets the DataSource. Generally it's a DataSet object. Gets or sets the DataMember from the multi-member DataSource. Generally it represents a DataTable object of a DataSet. Bind columns collection. The actually binding datasource object at run-time. It is a DataView object when the DataSource property is a DataSet, DataTable or DataView object. In data-binding mode, indicates whether to create bind column header captions in the sheet. In data-binding mode, BindStartRow and BindStartColumn indicate the position of the grid to bind bo the datasource. In data-binding mode, BindStartRow and BindStartColumn indicate the position of the grid to bind bo the datasource. Gets the . Gets the collection. Gets or sets the name of the sheet. Gets the data validation setting collection in the worksheet. Indicates whether this sheet's name is shown in the sheet tabs of the control. Gets the binding rows number in data-binding mode. Gets or sets whether the worksheet is protected. When a worksheet is protected, all the cells can not be edit except the cell whose IsLocked property is false. NOTE: This class is now obsolete. please use GridWorksheetCollection Instead. This class will be removed after 6 months since Aug. 2014. Aspose apologizes for any inconvenience you may have experienced. Internal used only. Clear all worksheets. A workbook must contains a worksheet. Adds a worksheet to the collection. object index. Adds a worksheet to the collection. Worksheet name object. Adds a worksheet to the collection and copies data from an existed worksheet. Index of source worksheet. object index. Adds a worksheet to the collection and copys data from an existed worksheet. Source of WebWorksheet. object index. Adds a worksheet to the collection and copys data from an existed worksheet. Name of source worksheet. object index. Removes a sheet at the index. The sheet index. Removes the element at a specified name. The name of the element to remove. Inserts a sheet to the index. The index. the sheet name. Imports from an excel file stream, including disk file stream or memory stream. The excel file's stream, including disk file stream or memory stream. Imports from an excel file. The excel file's name. Loads data from a CSV file. The file's name. Loads data from a CSV file stream. The file stream. Loads data from a HTML file. The file's name. Loads data from a HTML file stream. The file stream. Loads data from a SpreadSheetML file. The file's name. Loads data from a SpreadSheetML file stream. The file's stream. Saves the worksheets to an excel file with Excel 2003 format. The name of the target file to write to. Saves the worksheets to a excel file stream, including disk IO stream or memory stream. The target file stream to write to. Saves data to a CSV file. The file's name. Saves data to a CSV file stream. The file stream. Saves data to a HTML file. The file's name. Saves data to a HTML file stream. The file stream. Saves data to a SpreadSheetML file. The file's name. Saves data to a SpreadSheetML file stream. The file stream. Saves the worksheets to an excel file. The stream to write to. The file format(Excel2003, Excel2007, CSV, SpreadsheetML) Saves the worksheets to an excel file. The name of the target file to write to. The file format(Excel2003, Excel2007, CSV, SpreadsheetML) Imports from a DataView. Creates a sheet with the DataView's table name automatically. The DataView object. Specifies the style of the dataview header bar. Specifies the style of the data area. Imports from a DataView to the specified sheet and position. The DataView object. Specifies the style of the dataview header bar. Specifies the style of the data area. Specifies the sheet name. If the sheet doesn't exist, it will be created for you. Specifies the import position. Specifies the import postion. Copys contents to an array. An array. Index of the array. Removes a sheet. The sheet. Indicates whether the collection contains the sheet. The sheet. Gets the index of the sheet. The sheet. Adds a sheet object. The sheet. Runs all the cells's formula. Gets the element at the specified index. The zero based index of the element. The element at the specified index. Gets the element at the specified index. The zero based index of the element. The element at the specified index. Gets the pivotTable collection object. Gets the PivotCache collection object Gets a value indicating if access to the ICollection is synchronized (thread-safe). Gets an object that can be used to synchronize access to the ICollection. Gets a value indicating whether the IList is read-only. Gets a value indicating whether the collection has a fixed size. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Internal used only. Inherited from WebWorksheet. Used in design-time only. Default constructor. Internal used only. Inherited from GridWorksheet. Used in design-time only. Default constructor. Inherited from System.Web.UI.WebControls.TableStyle. Represents the style of a web table. Please refer to .NET SDK document about System.Web.UI.WebControls.TableStyle for further information. Copies from another style object. another style object. Merges with another style object. another style object Internal use only. Do not call this method directly. Default constructor. Specifies the style of left border of the table. Specifies the style of right border of the table. Specifies the style of top border of the table. Specifies the style of bottom border of the table. Specifies whether the layout of the table is fixed(not extended automatically when it contain large objects). Specifies the border collapse feature. Always returns -1. Always returns -1. Background image url. Grid lines. Horizontal align. GridWebForm control. It works with the GridWeb control. Set the GridWebControl property for it before run it. Default constructor. Hides the GridWeb control and shows the GridWebForm control. Hides the Form and shows the GridWeb control. Internal used only. Internal used only. Internal used only. Gets or sets the current record line number of the sheet. Gets or sets the Edit Mode of the GridWebForm control. Gets or sets whether to create a switching button in the GridWeb control's command bar. Gets or sets the linked GridWeb control. Gets or sets the form's name. Gets or sets the width of the control. Gets or sets the height of the control. Gets or sets whether to show the form control. This property is controlled by the control itself. Do not modify it manually. Occurs when the "save" button is clicked. Layout fixed type of a table object. Not set. Fixed. Auto. Represents the preset style or an GridWeb control. By far, we provide 7 preset styles. Standard style, silver Rose Blue Cyan Cyan again Dark Gray Use your customized style Represents the interface that intend to handle row/column events. void handleCellEvent(Object sender, RowColumnEventArgs e); The source of the event. The event argument. Call e.RejectOperation() if you want to cancel the deleting operation in RowDeleting or ColumnDeleting event handlers. Encapsulates the style of web table or cell border. Please refer to .NET SDK document for further information about System.Web.UI.WebControls namespace. [C#] WebCell cell1 = GridWeb1.WebWorksheets[0].Cells["A1"]; cell1.Style.LeftBorderStyle.BorderColor = System.Drawing.Color.Red; cell1.Style.LeftBorderStyle.BorderStyle = System.Web.UI.WebControls.BorderStyle.Solid; cell1.Style.LeftBorderStyle.BorderWidth = new System.Web.UI.WebControls.Unit(16, System.Web.UI.WebControls.UnitType.Point); [Visual Basic] Dim cell1 As WebCell = GridWeb1.WebWorksheets(0).Cells("A1") cell1.Style.LeftBorderStyle.BorderColor = System.Drawing.Color.Red cell1.Style.LeftBorderStyle.BorderStyle = System.Web.UI.WebControls.BorderStyle.Solid cell1.Style.LeftBorderStyle.BorderWidth = New System.Web.UI.WebControls.Unit(16, System.Web.UI.WebControls.UnitType.Point) Default constructor. Copies from another style object. The style object to be copied. Gets or sets the style of the border. Please refer to .NET SDK document about System.Web.UI.WebControls.BorderStyle enum. Gets or sets the color of the border. Please refer to System.Drawing.Color struct. Gets or sets the width of the border. Please refer to System.Web.UI.WebControls.Unit struct. Represents user's custom calculation engine to extend the default calculation engine of Aspose.Cells. [C#] public class MyEngine : GridAbstractCalculationEngine { public override void Calculate(GridCalculationData data) { string funcName = data.FunctionName.ToUpper(); if ("MYFUNC".Equals(funcName)) { //do calculation for MYFUNC here int count = data.ParamCount; object res = null; for (int i = 0; i < count; i++) { object pv = data.GetParamValue(i); if (pv is ReferredArea) { ReferredArea ra = (ReferredArea)pv; pv = ra.GetValue(0, 0); } //process the parameter here //res = ...; } data.CalculatedValue = res; } } } Calculates one function with given data. the required data to calculate function such as function name, parameters, ...etc. User should set the calculated value for given data for all functions(including excel native functions) that he wants to calculate by himself in this implementation. Represents the required data when calculating one function, such as function name, parameters, ...etc. Gets the represented value object of the parameter at given index. index of the parameter(0 based) If the parameter is plain value, then returns the plain value. If the parameter is reference, then return ReferredArea object. Gets the literal text of the parameter at given index. index of the parameter(0 based) literal text of the parameter Gets or sets the calculated value for this function. User should set this property in his custom calculation engine for those functions the engine supports, and the set value will be returned when getting this property. Getting this property before setting will make the function be calculated by the default calculation engine of Aspose.Cells and the calculated value will be returned. Gets the Workbook object where the function is in. Gets the Workbook object where the function is in. Gets the Cell object where the function is in. Gets the function name to be calculated. Gets the count of parameters Represents a referred objcet by the formula. Gets cell values in this area. If this area is invalid, "#REF!" will be returned; If this area is one single cell, then return the cell value object; Otherwise return one array for all values in this area. Gets cell value with given offset from the top-left of this area. row offset from the start row of this area column offset from the start row of this area "#REF!" if this area is invalid; "#N/A" if given offset out of this area; Otherwise return the cell value at given position. Indicates whether this is an external link. this.KeepedRels = source.KeepedRels; Indicates which sheet this is in Indicates whether this is an area. If this is not an area, only StartRow and StartColumn effect. The end column of the area. The start column of the area. The end row of the area. The start row of the area. The basic namespace of GridWeb. The namespace of basic data represented classes of GridWeb. The namespace of basic designer represented classes of GridWeb.