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
335
Wingrid third band key not found
posted

I have the following line of code in my grid initializelayout section.

e.Layout.Bands(2).Columns("AcctType").Hidden = True

This gives me the error 

Key not found 
Parameter name: key
 

This is on a third band and I have verified that the column name is correct.
I can make this work on both band 1 and band 2.

Anyone have any ideas? 

Parents
  • 469350
    Offline posted

    Hi Kevin,

    The obvious reason for this is that your data source only has 2 bands. Do you actually see a third band in the grid?

    What kind of data source are you using for your grid?

Reply Children