Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4236450
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T02:38:26+00:00 2026-05-21T02:38:26+00:00

I have a grid where I want to take the text from that cell,

  • 0

I have a grid where I want to take the text from that cell, convert it to an image and send it back to the grid.

Here is my template code:

<DataTemplate x:Key="categoryCellTemplate">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="50" />
        </Grid.RowDefinitions>

        <Image Grid.Column="0"
               Margin="1,1,4,1"
               VerticalAlignment="Center"
               Source="{Binding Converter={StaticResource catConverter}}"
               />
    </Grid>
</DataTemplate>

and here is my xaml code:

<Grid>
    <xcdg:DataGridControl Height="311" 
                          HorizontalAlignment="Left" 
                          Name="dataGridControl1" 
                          VerticalAlignment="Top" 
                          Width="503"
                          ItemsSource="{Binding Source={StaticResource Clients}}">
        <xcdg:DataGridControl.Columns>
            <xcdg:Column FieldName="Name" />
            <xcdg:Column FieldName="Age" />
            <xcdg:Column FieldName="Category" />
            <xcdg:Column FieldName="Color"
                         CellContentTemplate="{StaticResource categoryCellTemplate}" />
            <xcdg:Column FieldName="DOB" />
        </xcdg:DataGridControl.Columns>
    </xcdg:DataGridControl>
</Grid>

where i am having trouble in the template code is to specify what the parameter is…. since he data is bound, I dont know how to send it to the converter class.. please help!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T02:38:26+00:00Added an answer on May 21, 2026 at 2:38 am

    It depends what kind of parameter you want to pass. You can use the ConverterParamter like this

    Source="{Binding Converter={StaticResource catConverter}, ConverterParameter='some parameter'}"
    

    however the ConverterParameter is not a dependency property so you cannot use binding. If you want to supply dynamic context you would need to use multi binding and a multi value converter like this:

    <Image.Source>
        <MultiBinding Converter={StaticResource catMultiConverter}>
          <Binding .../>
          <Binding .../>
        </MultiBinding>
    </Image.Source>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a grid view. I want to take the selected row from the
I have a grid that has multiple rows. I want to hide/show one of
Given that I want my string grid to have equal height rows ... I
I have an application that has drawn a grid using CDC (it has text,
i have a DevExpress Grid and want to set up an edit Mask on
i have data-grid in my application and i want to customize my data-grid so
I have a grid view on my page and I want to export it
I have a grid, which I want to add a button at the top
I have a grid with some controls inside. I want to hide the grid
I have a grid made using slickgrid on a html page. I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.