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
300
xamdatagrid dataitem
posted

have Employee class ….below are the attributes of it.

·         ID

·         Name

Now..I want to display ID,Name and Item No (Index of item..List<Employee> ..Item COunt..then how i can bind it in Unbound Field

 

 

<igDP:Field Name="ID" Label="ID">

 

 

<igDP:Field.Settings>

 

 

<igDP:FieldSettings AllowSummaries="False" AllowEdit="False"/>

 

 

</igDP:Field.Settings>

 

 

</igDP:Field>

 

 

<igDP:Field Name="Name" Label="Name">

 

 

<igDP:Field.Settings>

 

 

<igDP:FieldSettings AllowSummaries="False" AllowEdit="False"/>

 

 

</igDP:Field.Settings>

 

 

</igDP:Field>

 

 

<igDP:UnboundField Name="ItemNo" Label="ItemNo" BindingPath="DataItem">

 

 

 

</igDP:UnboundField>

  • 138253
    Offline posted

    Hello BRana,

     

    I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.

     

    If the above suggestion helped you solve your issue please verify the thread as answered so other users may take better advantage of it.

  • 138253
    Offline posted

    Hello BRana,

    Thank you for your post. I have been looking through it and I created a sample project for you with the functionality you want. I used an ObservableCollection instead of a List, because it has a CollectionChanged Event in which I set an additional property which is equal to the index of the item in the collection. Please note, we are making effort to ensure that all forum posts are answered by an Infragistics expert. We believe that the other community member could benefit from this thread as well.

    If you have any further questions fell free to ask.