Skip to content

LoadCSV fails used with MemoryWorkbook #383

@KeiBontakun

Description

@KeiBontakun

Describe the bug
Used with MemoryWorkbook LoadCSV throws System.NullReferenceException.
CSV.cs Line 126 has following code and controlAdapter is null.

this.controlAdapter.ChangeCursor(CursorStyle.Busy);

To Reproduce

var grid = ReoGridControl.CreateMemoryWorkbook();
var sheet1 = grid.Worksheets[0];
sheet1.LoadCSV(file,Encoding.ASCII);

Expected behavior
LoadCSV succeeds like Load() Method.

Edition
Which edition of ReoGrid do you using?

  • Windows Form
  • ReoGrid 2.1.0.0

Environment (please complete the following information):

  • OS: Windows 10
  • Language of OS: English

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions