There is one column in my ultra wingrid which has a valuelist bound to this column, but after I load this wingrid, the column with the valuelist is empty, it doesn't display anything, there is even no drop down arrow on this column.
The code is:
DataSet ds = dataset with data from database ; BindingSource source = new BindingSource(); source.DataSource = ds.Tables["TableNamel"]; this.UltraWinGrid.DataSource =source;
BindValueList();
Now I create a new value list and add a new column to this ultra win grid, bind this new column to the newly created value list:
BindValueList()
{ this.UltraWinGrid.DisplayLayout.ValueLists.Add("ValueList"); this.UltraWinGrid.DisplayLayout.ValueLists["ValueList"].ValueListItems.Add("1", "1"); this.UltraWinGrid.DisplayLayout.ValueLists["ValueList"].ValueListItems.Add("2", "2"); this.UltraWinGrid.DisplayLayout.ValueLists["ValueList"].ValueListItems.Add("3", "3"); this.UltraWinGrid.DisplayLayout.ValueLists["ValueList"].ValueListItems.Add("4", "4"); this.UltraWinGrid.DisplayLayout.Bands[0].Columns.Add("NewColumn", "NewColumn"); this.UltraWinGrid.DisplayLayout.Bands[0].Columns["NewColumn"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; this.UltraWinGrid.DisplayLayout.Bands[0].Columns["NewColumn"].ValueList = this.UltraWinGrid.DisplayLayout.ValueLists["ValueList"];
}
But,when I run the project,after the grid is loaded, on the column of "NewColumn" there is nothing, not even the drop down arrow, the whole column is empty, I clicked on one cell of this column, there is still nothing appearts.
who knows why? is it because of the binding source of this ultra win grid?
Even nobody answer this question, but I figured it out myself, hopefully it can help some others.
The reason why the the whole column is empty, even the drop down arrow is not displayed, is that this column needs to be set "allow update", like this:
this.UltraWinGrid.DisplayLayout.Override.AllowUpdate = Infragistics.Win .DefaultableBoolean .True;
Thanks! it helped me alot!
I fixed the problem by setting the datasource of the grid to a datatable, and adding a row to the datatable.
I have the same issue. I don't see a TemplateOnBottom setting for AllowUpdate, just for AllowAddNew.
What have you set AllowUpdate to? You probably want to use a setting like TemplateOnBottom.
Is your grid showing column headers?
I have an empty ultra data source and all the columns in my grid are bounfd to value list. But still i am not able to see even a single row. I have turned on Allow Update proprty also.
Any Idea?