Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top