Hi,
I have a question on how to achieve the following functionality.
I have a screen with multiple controls spread across the form. There are atleast 6 dropdowns on that form and user can only value select one from each dropdown. However the requirement has been changed and wants to see multiple columns in the dropdown and also wants to see a checkbox as the first column to select multiple items (unlike holding the SHIFT key to select multiples) . One of the drop down has atleast 6000 items. Is there any dropdown control in infragistics suite that can handle this? We don't have a lot of room to put 6 grids on the same form.
Also, can I achive this through binding a datatable?
So far we are using Microsoft controls and our company just ordered an Infragistics suite.
Any response is highly appreciated.
Sivaram.
Hi Sivaram,
PerformAutoResizeColumns should size every column so that all of the text fits. I've never heard of a case where this method did not work. If that's not working, then I'm not sure why that would be. The only thing I can think of is that maybe you are adding rows to the data after you have already called the method, so the new rows are not taken into account when sizing the column.
Are you binding the grid and the adding data to the data source programmatically?
Can you duplicate this in a small sample project? If so, you should Submit an incident to Infragistics Developer Support
Thanks for the response.
"ultraGrid1.Rows.FilterRow.Cells[0].Hidden = true;" really works for me. A+++++++
However "PerformAutoResize" expanded the columns but not totally. Some of the content is hidded. Basically I was expecting that the column will expand and a horizontal scroll bar appears. But it did not happen. I have 4 columns in the grid, none of the columns are fixed and the column that has more data even if I manually expand its width is still less than the width of the grid. Forgive me if I doing something wrong. Here is what I tried in the UltraGrid's "InitializeLayout" event.
e.Layout.PerformAutoResizeColumns(false, Infragistics.Win.UltraWinGrid.PerformAutoSizeType.AllRowsInBand);
e.Layout.Scrollbars = Infragistics.Win.UltraWinGrid.Scrollbars.Automatic; ---- Did not worked. It did not displayed horizontal scroll at all.
e.Layout.Scrollbars = Infragistics.Win.UltraWinGrid.Scrollbars.Both; ---- Horizontal scroll appeared but disabled eventhough there are columns to scroll horizontally.
//e.Layout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Deferred;
e.Layout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
e.Layout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill;
I tried expanding the columns widths at runtime to see whether the horizontal scroll bar appears, but it did not.
Regards
Civaram said:Is there a way not to show the checkbox (Highlighted in Red) on the filter row?
You can set the Style property on the cell in the FilterRow. Something like grid.Rows.FilterRow.Cells["Col_1"].Style =...
What style you use depends on what you want. In your case, you might want to use picture so the cell will be blank and not editable. Or you might even want to just set the Hidden property on the cell to true and make the whole cell invisible. Or, you might use the Activation property on the cell to disable it.
Civaram said:The Columns widths are not properly expanded (Highlighted in Blue). Is there a setting (like BestFit) that makes "all visible columns" widths expanded based on the content/data in the cells, if required displaying the horizontal scroll bar to view all the visible columns.
There's a PerformAutoResize method on the column. So I would recommend using the InitializeLayout event of the grid to call this on every colmun. If you are using the latest version of the grid, there's a method on the Band and the DisplayLayout that will do it for you on every column.
Hi Vince,
Thanks for your response. This is what I was looking for.
After following the sample, I encountered another issue. Attached screen shot explains well enough.
Under the Grid's Feature Picker, I added Filtering/Filter UI Type to "Filter Row" to give option to the user to type and filter the rows. This added an additional row on the top just below the column header which is fine. Now I see the checkbox even in the newly added filter row.
Appreciate your response.
Thanks
There's no pre-built control for a multiple-select drop-down in NetAdvantage for Win Client. However, most of the "building blocks" to make a mulitiple-select drop-down of this sort are available. Check out the following article from our Knowledge Base for details:
HOWTO:Creating a Multi-Select Dropdown Combo for the WinGrid
Since this example uses our WinGrid, it can be bound to a DataTable.