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
1380
Grid cell_change
posted

Hi, I try this code but get error - cannot find key name.I checked key names, they are same.Any idea?
private void ultraGrid_CellChange(object sender, CellEventArgs e)
{
    if (e.Cell != null)
    {
    	if (e.Cell.Column.Key == firstColumnName)
    	{
            ValueList vl = ultraGrid.DisplayLayout.ValueLists["secondColumnName"];
            var item = vl.ValueListItems[0];
    	}
    }
}
  • 469350
    Verified Answer
    Offline posted

    Ilkin said:
    I checked key names,

    What key names are you checking and how are you checking them? If you are getting an error that says "Key not found", then there is no ValueList in the ValueLists collection with the key you have here.