Telerik.Windows.Data.DataRecord

3 posts, 0 answers
  1. Jon
    Jon avatar
    539 posts
    Member since:
    Apr 2004

    Posted 18 Dec 2008 Link to this post

    Hi..
    How do I return my row values from the DataRecord object ?    Thanks Again!!

    I'm using a converter class - as you suggested to conditionally format data...

    public

     

    object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)

     

    {

     

     

    // If the Lastname field in my datarow  begins with "A" - then display an A ICON......      


     

     

     

    if (((Telerik.Windows.Data.DataRecord)value).Data.ToString()=="A")

     

    {

     

    return "A.jpg";

     

    }

     

    return String.Format("{0}.jpg", ((Telerik.Windows.Data.DataRecord)value).Data);

     

    }

  2. Jon
    Jon avatar
    539 posts
    Member since:
    Apr 2004

    Posted 18 Dec 2008 Link to this post

    Hi..
    I assume all I have to is

     

    DataSet1.RepInfoRow dr =(DataSet1.RepInfoRow) ((Telerik.Windows.Data.DataRecord)value).Data;

     

  3. UI for WPF is Visual Studio 2017 Ready
  4. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 19 Dec 2008 Link to this post

    Hi Jon ,

    Yes, this is the right way to achieve the task.

    Regards,
    Rosi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top