public override int GetInt32(int ordinal)
{
ValidateState(nameof(GetInt32));
ValidateReader();
try
{
return (int)_currentDataRow[ordinal];
}
catch (IndexOutOfRangeException e)
{
// thrown by DataColumnCollection
ExceptionBuilder.TraceExceptionWithoutRethrow(e);
throw ExceptionBuilder.ArgumentOutOfRange(nameof(ordinal));
}
}
private void FillComDebitBillIdIsFalse() { this.selectlocalbillTableAdapter.Fill(this.lclsupset.selectlocalbill); DataTable table = this.lclsupset.Tables["selectlocalbill"]; DataTableReader read = new DataTableReader(table); comboDebitBillNumber.Properties.Items.Clear(); while (read.Read()) { comboDebitBillNumber.Properties.Items.Add(read.GetInt32(1).ToString()); } }