DROP TABLE users
DROP TABLE users

Reputation: 1955

Add SpecialRowPromptField to multiple columns on ultragrid

I have a filter row at the top of a grid with two columns. If I use this code to set the specialrowpromptfield it only sets it on the second column. Is there a way to set this for multiple columns?

    e.Layout.Bands[0].SpecialRowPromptField = e.Layout.Bands[0].Columns[0].Key;
    e.Layout.Bands[0].SpecialRowPromptField = e.Layout.Bands[0].Columns[1].Key;

Thanks,


Answer:

Looks like this is not something that can be done.

Upvotes: 0

Views: 271

Answers (1)

Steve
Steve

Reputation: 216293

As from Help

Specifies the key of the column whose cell to position the special row prompts in.

You can specify just one column (by its Key). The only other option available (as far as I know) is to let the property to null. In this way the prompt spans from the first column over the adjacent columns.

Of course, your code, set, as prompt field, the column at Index 1 because the last one used overwrite the previous setting.

Upvotes: 1

Related Questions