hi
i used the following link to create multi select drop down for ultra win grid:
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=7698
but i have a problem: after i create the grid for certain cell, and define its datasource, i want to define part of my column as read only but i cant, when checking i see that the grid has 0 rows inside it, athough the datasource has rows in it. only when user click on the cell that is connected to that grid, and the drop down is opened the grid contains the data i binded to it.
why is this happening? how can i solve it
this is the code i wrote:
DropDownEditorButton
buttonConfiguration = new DropDownEditorButton(); //Dropdown Editor Button
UltraGrid theMultiSelectGridConfiguration = new UltraGrid();
theMultiSelectGridConfiguration.BeginUpdate();
theMultiSelectGridConfiguration.UpdateMode =
UpdateMode.OnCellChangeOrLostFocus;
buttonConfiguration.Control = theMultiSelectGridConfiguration;
//The Multi Select "Combo"
UltraTextEditor UltraTextEditorConfiguration = new UltraTextEditor();
UltraTextEditorConfiguration.AfterEditorButtonCloseUp += HandleEditorCloseUp;
UltraTextEditorConfiguration.ButtonsRight.Add(buttonConfiguration);
//add the button to the editor control
DataTable dtConfiguration = new DataTable();
dtConfiguration.Columns.Add(
" ", Type.GetType("System.Boolean"));
"possible values", type);
foreach (var value in testConfiguration.Select(p => GetMyMthod(parameterName, p)).Distinct().ToList())
{
var row = dtConfiguration.NewRow();
row[0] =
false;
row[1] = value;
dtConfiguration.Rows.Add(row);
}
theMultiSelectGridConfiguration.DataSource = dtConfiguration;
//Fill the "Combo" with Data
theMultiSelectGridConfiguration.DataMember =
"";
theMultiSelectGridConfiguration.DataBind();
theMultiSelectGridConfiguration.EndUpdate();
----> when tring to access theMultiSelectGridConfiguration rows i see there are no rows. only after user will click on the grid cell and the grid will open i will see rows.
what can i do?
i want to type in the filter column.
just like the option in grid.
ultracombo.DisplayLayout.Bands(0).Override.FilterUIType = FilterUIType.FilterRow
but unable to type in the column.
could you post an application for example.
thank you
this.ultraCombo1.DisplayLayout.Override.AllowRowFiltering = DefaultableBoolean.True;
Hi
i am new to create a ultragrid with ultracombo control.
since my requirement is to select multiple employees for a single workorder(row).
i bind ultracombo using editor component of ultragrid.
i need to have filter option for employee column.
how to create filter option for ultracombo binded to ultragrid?
please help me with any sample codes.
The grid you are creating in code has no container. Therefore is has no BindingContext, and also will not be disposed when your form closes. Add it to the Controls collection of the form and that should fix it.
Also... the article you are looking it may be obsolete. If you are using the latest version of the grid, then the UltraCombo now has built-in multi-select support.