NDDataGrid class methods

AddRow method

Adds a row to the grid and returns the row’s reference.

Syntax

public Row AddRow()

Return value

Type: Neurodot.Forms.Silverlight.Controls.Row

The row object just added.

 

DeleteRow(int)

Removes a row at the given index.

Syntax

public void DeleteRow(int index)

Parameters

index

Type: System.Int32

The zero-based index of the row to be removed.

 

DeleteRow(Row)

Removes a given row if it is present in the data grid.

Syntax

public void DeleteRow(Row row)

Parameters

row

Type: System.Int32

The Row object to be removed.

 

 

DeleteSelectedRows method

Removes all selected rows from the data grid.

Syntax

public void DeleteSelectedRows()

 

GetColumnBySortMemberPath

Gets a reference to a data grid column by value of its SortMemberPath property.

Syntax

public DataGridColumn GetColumnBySortMemberPath(string sortMemberPath)

Parameters

sortMemberPath

Type: System.String

The name of the column (i.e. the value of the property SortMemberPath of the column) to be found.

Return value

Type: System.Windows.Controls.DataGridColumn

The reference to a column of the grid or null if no column is found.