I would suggest something new
On Mon, Aug 1, 2011 at 10:03 AM, matts <matthewjsword@...> wrote:
> **
>
>
> Hey All -
>
> I have a situation where I need to add a dropdown to the LineMiscCharge
> grid on Sales Order entry.
>
> I created a DataView from the DataSource and I added a column, but when I
> try to "Stylize it" it's not rendering as a droptown, any ideas? Here is my
> code.
>
> Epicor.Mfg.UI.FrameWork.EpiUltraGrid grdDtlMiscChg=
> (Epicor.Mfg.UI.FrameWork.EpiUltraGrid)csm.GetNativeControlReference("d3bb017c-ae5e-4cd5-8624-508679e86913");
>
> //Create Dataview from grids Datasource
> DataView dv = (DataView)grdDtlMiscChg.DataSource;
> dv.Table.Columns.Add(new DataColumn("CompCodes"));
>
> grdDtlMiscChg.DisplayLayout.Bands[0].Columns["MeetCompCodes"].Style =
> Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
>
> //Dropdown items
> grdDtlMiscChg.DisplayLayout.ValueLists.Add("Vlist1");
> rdDtlMiscChg.DisplayLayout.ValueLists["Vlist1"].ValueListItems.Add("FED");
> grdDtlMiscChg.DisplayLayout.ValueLists["Vlist1"].ValueListItems.Add("GOV");
>
> grdDtlMiscChg.DisplayLayout.ValueLists["Vlist1"].ValueListItems.Add("STATE");
>
> //bind
> grdDtlMiscChg.DisplayLayout.Bands[0].Columns[0].ValueList =
> grdDtlMiscChg.DisplayLayout.ValueLists["Vlist1"];
> grdDtlMiscChg.DataSource = dv;
>
> I know the dropdown code works because I can add a blank datatable to a
> grid and it displays right.
>
> Additionally, if I were to get the drop down figured out, how do I bind it
> to a UD field?
>
> Version: 9.05.904a
>
> thanks
> Matt
>
>
>
[Non-text portions of this message have been removed]