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
920
column selectively containing dropdown
posted

Hi,

I want a column that has a drop down with a list for most rows, but for the first two rows I want it to just be a read only cell that the user cannot interact with nor allow any kind of drop down action or display to display.

 

Here's the code I currently have:

column.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;

column.ValueList = (ValueList)formatItem.LookupList;

 

but I can't figure out how to make the first two row/cells for that column readonly and not display the drop-down list.

Thanks,

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    You could do something like this:


            private void ultraGrid1_InitializeRow(object sender, InitializeRowEventArgs e)
            {
                if (e.Row.Index == 0 || e.Row.Index == 1)
                {
                    e.Row.Cells["column Key"].Activation = Activation.NoEdit;
                }
            }

Children
No Data