Hi,I have a property :
Protected WithEvents m_TabDetailDomainDataSource As DomainDataSource
Public ReadOnly Property TabDetailData() Get If m_TabDetailDomainDataSource IsNot Nothing Then Return m_TabDetailDomainDataSource.Data End If Return Nothing End Get End Property
And XamWebGrid:
<igGrid:XamWebGrid x:Name="grdDetail" ItemsSource="{Binding TabDetailData}"/>
When m_TabDetailDomainDataSource.Data have any row, grid binding ok.when i reload data and m_TabDetailDomainDataSource.Data have not any row, grid do not have layout. Why?
If i define any column in xam,
it throw exception
Thanks,
Hi,
So, When grid have not any row, how can i AddnewItem on grid? because now there is not AddNewITem row.
In order for this to work, the grid would need to be bound to a Generic collection. If the collection is generic, then we can know about what data exists in your data source even if no data exists in it, and support such operations.
-SteveZ
Hi Steve,
Can you enumerate the Generic collection type? Becouse I use an IEnumerable<t> as return value and it doesn't work either.
Thank you
Jaimir G.
Hi Jaimir,
We do use the type from the collection.
Unless 'T' is of type 'object'.
Do you have a sample?