Updateable Dashboard and Pull Down


(MIGUEL S.) #1

IS there a way to have my User Code display in my UDB. They should only be able to enter EASY, MEDIUM, HARD

image

image


(Chris Conn) #2

I have no exposure to E9 but assume its an infragistic grid

private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
{
    ValueList vl;
    
    if ( ! e.Layout.ValueLists.Exists("MyValueList"))
    {
        vl = e.Layout.ValueLists.Add("MyValueList");
        vl.ValueListItems.Add(1, "A");
        vl.ValueListItems.Add(2, "B");
        vl.ValueListItems.Add(3, "C");
    }
    e.Layout.Bands[0].Columns["UrColName"].ValueList = e.Layout.ValueLists["MyValueList"];
}

(MIGUEL S.) #3

Thanks Chris, while i understand what this is doing, I dont know how to apply it.

But I did a search and found some stuff online and here ya go. You can do custom lists or UserCodes, but UserCodes got me spinning and spinning.

image


(Chris Conn) #4

I think you should be able to do this in form_load

EpiUltraGrid g = (EpiUltraGrid)csm.GetNativeControlRefence("the grids guid");

 ValueList vl;
    
    if ( ! g.DisplayLayout.ValueLists.Exists("MyValueList"))
    {
        vl = g.DisplayLayout.ValueLists.Add("MyValueList");
        vl.ValueListItems.Add(1, "A");
        vl.ValueListItems.Add(2, "B");
        vl.ValueListItems.Add(3, "C");
    }
    g.DisplayLayout.Bands[0].Columns["UrColName"].ValueList = e.Layout.ValueLists["MyValueList"];