Home Forums WinForms controls Xceed Grid for WinForms Binding empty data source

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #13632 |

    Hi,

    I bind object which implements IList to DataGrid. If IList.Count > 0 than all work just fine. But when IList.Count = 0 then no columns are displayed in the grid though ShowUnlinkedColumns is set to true. Is it possible to show column headers when data source has no rows?

    Best regards,
    Sergey

    Imported from legacy forums. Posted by iwds (had 2579 views)

    User (Old forums)
    Member
    Post count: 23064

    I think the .NET binding mechanism (that is also used by Xceed.Grid), needs at least 1 object, to determine what columns it has to show.
    Check out this article on complex databinding: <a href=”http://weblogs.asp.net/fbouma/articles/115837.aspx”>http://weblogs.asp.net/fbouma/articles/115837.aspx</a&gt;

    Imported from legacy forums. Posted by Tommy (had 115 views)

    User (Old forums)
    Member
    Post count: 23064

    Great article! It helped. Thanks!

    Imported from legacy forums. Posted by iwds (had 3389 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.