Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
650
Remove items in drop down
posted

I have a dropdown bound to a datatable.

I would like to remove items in the drop down as I need the rows in the datatable at a later stage.

I have looked in the InitializeLayout event but not sure how to remove items in the drop down.

Help!

Parents
  • 650
    Verified Answer
    posted

     foreach (var row in e.Layout.Rows)
                {
                    if (row.Cells["colname"].Value.ToString() != "value")
                        row.Hidden = true;
                }

Reply Children
No Data