Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • steven8579
    Participant
    Post count: 4

    I don’t know why my code didn’t come out right above. Here it is again in plain text:

    void loadClients()
    {

    gridClient.Rows.Clear();
    List<Models.Client> clients = BunifuMapper.MapToList<Models.Client>(db.GetRows(“select * from clients where ‘ClientName’ LIKE ‘%” + txtSearch.Text.Trim() + “%'”));

    foreach (var client in clients)
    {
    gridClient.Rows.Add(new object[] {
    client.id,
    client.ClientName,
    client.Address,
    client.PostalCode,
    client.Country,
    client.City
    });

    gridClient.Rows[gridClient.RowCount – 1].Tag = client;

    }
    }

    steven8579
    Participant
    Post count: 4
    in reply to: Bunifu Button #145044

    I tried the Focus() method and it doesn’t do anything. My user interface has the buttons in a left panel. When I click on the button, I want the button to appear a certain color indicating that it is selected. I’ve set the button to appear in a purple color when clicked setting the OnPressedState method. Am I missing something else? Am I supposed to set another property for this to happen? I put the BunifuButton1.Focus() in the Click method as you said.

    Thanks

Viewing 2 posts - 1 through 2 (of 2 total)