Welcome to the Xceed Community | Help
Community Search  
More Search Options

How get the text of Item regardless of data Type of Item

Sort Posts: Previous Next
  •  08-21-2009, 8:00 AM Post no. 23453

    How get the text of Item regardless of data Type of Item

    hi,

     i have made search text in grid but uptill my grid was only containing datatable.DefaultView

    now i have given Object Collection as Source of Grid.

    so in First Case I was casting Item into DataRowView now it gives the obect of the item can i access the item same way without casting.

    one way i found is Cell.Content but can i have some other way as this way makes the assumption that cell is not having the costom template.

     some thing like Indexer in Row  or something else

     

    thanx in advance

     

    Regards,

    Pratik


    Pratik Gohil
  •  08-21-2009, 10:05 AM Post no. 23457 in reply to 23453

    Re: How get the text of Item regardless of data Type of Item

    Hi Pratik,

    You should rather do your search on the data items rather than on the cells since they are virtualized.

    We assume you know the types of the fields of Collection’s items. Then you could properly implement a converter for them into a string and do your sorting based on the string representation.

     


    Xceed - Software Developer and Technical Support
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.