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
360
Show Header-Text even if the grid has no DataSource; possible?
posted

Hello,

 

we are using an ig:WebDataGrid, but the DataSource is changing and initially null. What kind of columns there are is defined in the .aspx file and does not change, nevertheless. Now we wish to see the column header even if there is not DataSource assigned yet. It should be possible since the necessary information is contained in the definition of the ig:BoundDataField, but I can't find an option for this. If I remember correctly, the ASP.NET has something along the lines of ShowHeaderWhenEmpty="true".

 

Is this possible with your WebDataGrid, and if yes, how? Thank you very much in advance!

Parents
No Data
Reply
  • 49378
    Verified Answer
    posted

    Hello Johannes,

    In order to ensure that the column headers are displayed, the grid can be bound to an empty data source, i.e. one without rows but with the data schema matching the columns defined in the markup. Hope this helps.

    Please feel free to contact me if you have any questions.

Children
No Data