Tuesday, April 5, 2011

How to expand datagridview combobox cell programmatically?

I am trying to expand the ComboBox when users click it but I have had no success.

This is what I have:

private void dtgProductos_CellClick(object sender, DataGridViewCellEventArgs e)
{
    SendKeys.Send("{F2}");
    //dtgProductos.BeginEdit(true); does nothing!
}

Any advice on how to do this?

From stackoverflow

0 comments:

Post a Comment