Exemplo n.º 1
0
        private void BindClients()
        {
            ClientControl.DataValueField = "ClientId";
            ClientControl.DataTextField  = "ClientName";
            ClientControl.DataSource     = BusReport.GetClientsByUser(GetFromDate(), GetToDate(), UserControl.Value);
            ClientControl.DataBind();

            if (ClientControl.Items.Count > 0)
            {
                ClientControl.Value = new string[] { "0" }
            }
            ;                                                                   // any
            else
            {
                ClientControl.Value = new string[] { }
            };                                                          // not set

            BindProjectGroups();
        }