Grid scrollbars issue even if set both, when AutoGenerateColumns = true and many columns

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!
0
0

Hi!
Sometimes scrollbars doesn’t shows, when grid size is small (in my case 317×164), and many dinamic columns (AutoGenerateColumns = true), and ScrollBars=Both.

My code is like:
gridResults.DataSource = dataTableWithManyColumns;
gridResults.Columns[0].Visible = false;
gridResults.Focus();
if(dataTableWithManyColumns.Rows.Count > 0)
gridResults.Rows[0].Selected = true;

If I deselect all columns (in checkboxes menu), and reselect one by one, scrollbars finally shown.
Any advice to force scrollbars to show, or is a bug?

I try but no success with:
gridResults.Refresh();
gridResults.Update();
gridResults.PerformLayout();
gridResults.AutoScroll = true;

Thanks in advance!

Using version 1.3.23

  • You must to post comments
0
0

Hi Ser,

thanks for you sample and your hint about the RowHeadersVisible, which seems to be the missing piece to reproduce.

I have now logged WJ-7975 for that bug and we will inform you when it´s fixed.

Best regards
Frank

  • You must to post comments
0
0

Please test demo attached.
I noticed that only happens when RowsHeadersVisible = false

Attachment
  • You must to post comments
0
0

Hi Ser,

I have tried to replicate that issue, but couldn´t.

Can you please give me ssome hint about the data table ? How many columns ? How many rows ?

Any chance to provide us with a complete sample or the missing data table content definition ?

Thanks in advance.

Best regards
Frank

  • You must to post comments
Showing 3 results
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Attachment
File Name Size
There are currently no files uploaded.
Maximum number of files 5, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json