GetOneBasedColumnNumbersToImport
(
Int32 iDataGridViewColumnIndex
)
{
Debug.Assert(iDataGridViewColumnIndex > 0);
AssertValid();
LinkedList<Int32> oOneBasedColumnNumbers = new LinkedList<Int32>();
foreach (DataGridViewRow oDataGridViewRow in dgvSourceColumns.Rows)
{
if ( (Boolean)oDataGridViewRow.Cells[
iDataGridViewColumnIndex].Value )
{
oOneBasedColumnNumbers.AddLast(
ObjectWithTextToColumnNumberOneBased(
(ObjectWithText)oDataGridViewRow.Cells[
ColumnNameIndex].Value ) );
}
}
return (oOneBasedColumnNumbers);
}