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.
Hi,
When I hide the last column of the grid of the MutiColumnComboBox, the grid is shown with an excessive width.
How can I fix that?
Please see attached screenshot.
Thank you
mccb_8721.zip
ARAnupama Roy Syncfusion Team August 29, 2005 08:44 AM UTC
Hi Ivan,
The Width of the displayed column can be set using the code snippet shown:
this.multiColumnBoundCombo.ListBox.Grid.Cols.Hidden[2]=true;
this.multiColumnBoundCombo.ListBox.Grid.ColWidths[1]=this.multiColumnBoundCombo.DropDownWidth;
Please let me know if this meets your requirement.
Regards,
Anu.
IVIvanAugust 29, 2005 02:57 PM UTC
This is opposite to what I''m trying to accomplish.
My grid has more then 1 visible column and I need the grid to shrink, not to expand the last column.
Please advise.
Thank you
ARAnupama Roy Syncfusion Team August 30, 2005 09:12 AM UTC
Hi Ivan,
After hiding the undesired columns,We need to Set column width of other columns to occupy the entire dropdown width.I am attaching a sample here.
multicolumcombobox_5599.zip
Let me know if this satisfies your requirement.
Regards,
Anu.
IVIvanAugust 30, 2005 02:41 PM UTC
Hi
I''m sorry, but the example you have provided does not help me.
Please read carefully my previous post and take a look at the attached screenshots.
Thank you.
mccb1_1_8906.zipmccb1_1_1628.zip
ADAdministrator Syncfusion Team September 1, 2005 03:11 PM UTC
Hi Ivan,
Please set the HScrollPixel property of the grid to be true to fix this problem.
multiColumnComboBox2.ListBox.Grid.HScrollPixel = true;
The difference in behavior when this property is set to true, is that the user has finer control when scrolling along the horizontal axis. When this property is set to false, a column is always aligned at the left when scrolling.
Thanks,
Davis