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
165
apply RowLayout at runtime
posted

Hi

I have a grid whose schema i have defined it manually with grid designer.I have applied rowlayout to this grid for columns arrangement.I have designed and stored the layout with a name.I can see the code in designer.cs file.But when i try to load the rowlayout in runtime ,it does not take the row layout information,instead displays the data in jrid in  plain manner(judst as simple grid).the code is as follows(note it is not throwing any error here but it not taking the rowlayout information in runtime)

 gridArrivalInfo.SetDataBinding(dt,

null, true

);

 

 

gridArrivalInfo.DisplayLayout.Bands[0].RowLayouts[

"arrivalLayout"

].Apply();

 

please help

 

Thanks

anusha

  • 469350
    Suggested Answer
    Offline posted

    Hi anusha,

    One reason this might not work is if the data structure doesn't match the RowLayout. For example, if the band's Key at design-time whe you saved the RowLayout is not the same as it is at run-time. Or if the columns have changed in number or the keys of the columns don't match up.