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
385
Click on cell, open new form or pop-up?
posted

Hi,

I have a wingrid with parent bands and child bands.  The user would like to add in functionality so that when she clicks on one particular cell ("Supplier") in the parent band, a new form or pop-up would open with that particular supplier's details (address, phone number, etc.).  This information comes from a lookup table and the "supplierid" number from that table is what is used on the main record

I'm sure that the answer is somewhere on this forum already, but I don't think I'm searching correctly!

Thanks in advance for your help!

JCC

Parents
No Data
Reply
  • 37774
    Suggested Answer
    posted

    I'm not entirely sure which part of this you are asking about. You could use the ClickCell event (which I think was added in 8.3) to determine when the user clicks on a cell, then get the value of that cell (or another) in this event:

    private void ultraGrid1_ClickCell(object sender, Infragistics.Win.UltraWinGrid.ClickCellEventArgs e)
    {
        if (e.Cell.Column.Key == "Supplier")
        {
            object supplierID = e.Cell.Row.Cells["supplierid"].Value;

            // Show form
        }
    }

    -Matt

Children