[SOLVED] DataGridView VirtualMode

Answered
0
0

Hi we’ve just upgraded our application from Wisej 1.5 to 2.0 and a few of our datagridviews are set to virtualmode. The columns sorting is set to automatic and I’m getting this error onwebdataread. “Operation is not supported when VirtualMode is set to true” If I set to programatic the error goes away however I cannot set the SortGlyph icon because it seems to trigger a sort operation and causes the error to appear.

Any ideas?

  • You must to post comments
Best Answer
0
0

Hi Mark,

the fix for #1838 will be included in the next Wisej build.

Please note that to force a refresh instead of using

		this.dataGridView1.Rows.Clear();
		this.dataGridView1.RowCount = this.Values.Count;

It is better to use

		this.dataGridView1.BeginUpdate();

                    ... sort ...

		this.dataGridView1.EndUpdate();

Best regards
Frank

  • You must to post comments
0
0

Hi Mark,

thanks, I have logged this issue as #1838.
We´ll inform when it´s fixed.

Best regards
Frank

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.