The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I have a custom datasource that I bind to a GridGroupingControl. Before binding to the Custom Source I set some properties on the TableControl for example: this.TableControl.HScrollBehavior = GridScrollbarMode.Enabled
During my custom DataBinding method I make changes to each GridColumnDescriptor''s Style - for example:
GridTableCellStyleInfo gsi = column.Appearance.AnyRecordFieldCell;
gsi.Format = "G";
gsi.CellType = "TextBox";
After setting these proerties my Scrollbars dissapear? If I comment out the gsi.Format or gsi.CellType part I can see my Scrollbars.
In Fact setting ANY property on the GridTableCellStyleInfo causes me to loose my Scrollbars. What am I doing wrong? This is a BIG problem - I cant comment out the part where I Set the GridTableCellStyleInfo becuase then All my Data will be "unformatted" and When putting the code in I loose my scrollbars - then I cant see my data.
Please could you help me ASAP.
Regards,
Theo Danzfuss
ADAdministrator Syncfusion Team March 22, 2005 01:17 PM
Can you tell us how to reproduce this behavior in any of our samples? Or, can you upload a sample showing the problem? If you have a problem uploading, you can email it to support@syncfusion.com and mention this forum thread in the subject line.
ADAdministrator Syncfusion Team March 22, 2005 01:25 PM
Do you see any exceptions noted in your output window?
TDTheo DanzfussMarch 23, 2005 06:47 AM
Hi, No there are no Exceptions in the output window. Ill try to replicate it from one of your examples - but Im bit pushed for time right now so I cant promise anything now. Can you think of any reason why this is happening?
Regards
TD
ADAdministrator Syncfusion Team March 23, 2005 07:15 AM
To set a format like G in style.Format, the style.CellValueType should also be set to the appropriate system type like typeof(double).
Usually, type problems throw exceptions when you try to put a string into a double or a double into an int, etc.
TDTheo DanzfussMarch 24, 2005 03:44 AM
Hi, I manage to get my grid to work. Here is what happens:
The following piece of code throws away my scrollbars:
TableControl.TableDescriptor.Columns.Clear ( );
foreach ( PropertyDescriptor pd in view.GetItemProperties(null))
{
GridColumnDescriptor gcd = TableControl.TableDescriptor.Columns [TableControl.TableDescriptor.Columns.Add (pd.Name)];
gcd.Appearance.AnyRecordFieldCell.BackColor = System.Drawing.Color.Brown;
}
This piece of code works fine:
TableControl.TableDescriptor.Columns.Clear ( );
foreach ( PropertyDescriptor pd in view.GetItemProperties(null))
{
GridColumnDescriptor gcd = new GridColumnDescriptor ( );
gcd.Appearance.AnyRecordFieldCell.BackColor = System.Drawing.Color.Brown;
TableControl.TableDescriptor.Columns.Add ( gcd );
}
I don''t know why this happens but it seems that when changing a GridTableCellInfoStyle after the GridColumnDescriptor has been added to the Columns collection it "ignores" the scrollbar settings?
Regards
TD