Hi,
I am trying to figure out a way to do the follow:
I have an UltraGrid with 1 hidden primary key column and 5 visible data columns.
Column 1 and 2 are drop down lists.Column 3 is a dynamic cell.Column 4 is a text fieldColumn 5 is a drop down list.
I have an ultra data source, a DataSet, and DataTable. The DataTable matches the ultraDataSouce:string, string, object, double, string. I can data bind the Columns 1, 2, 4, and 5. But column 3 is the tricky one.
When the user makes a selection on column 2, the cellListSelected event is fired, and its event handler should analyze the selection, and make column 3 a text field, edit field with an edit button, default text with an edit field and edit button, or a drop down list for other selections.
My question is, how does data binding work with such a situation? Is it even possible?
Thanks
Hello,
Could you please review the sample attached to this post and see if it meets your requirements.Please feel free to let me know if I misunderstood you or if you have any other questions.
You can set the column style of column 3 as needed:
switch( selectionColumn2)
{
case selection1:
row.Cells["Column3"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Date;
break;
case selection2:
row.Cells["ValidationExpr"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Default;
}
This works fine for me.
Hope this helps. Markus