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 6583605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:25:51+00:00 2026-05-25T16:25:51+00:00

I have a Data Grid in Silverlight 4 with 3 columns along with a

  • 0

I have a Data Grid in Silverlight 4 with 3 columns along with a column which contains “Edit/Apply” button.

The row cells are initially rendered as plain text and I need them to be changed to Comboboxes in the edit mode.

Once the Edit button in any of the row is clicked. I need to change the textblock( This is my Cell Template) in one of the row to the ComboBox(This is my Cell Editing template)

The question is how do i facilitate this on clicking the Edit button of each row and not by double clicking on the row.

Thanks,
Vijay

  • 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-25T16:25:52+00:00Added an answer on May 25, 2026 at 4:25 pm

    After a bit of searching / trying i was able to toggle between display and edit mode by a button click (button placed in each row).

    Below posted is the sample code , which facilitates this toggle for one of the Cells in the Grid, Which makes use of Two Boolean Properties ShowDefaultTemplate and ShowEditableTemplate , The VisibilityConverter converts the boolean values to corresponding Visibility Options (Visible or Collapsed).

    <DataTemplate>
               <StackPanel Orientation="Horizontal">
                         <TextBlock Text="{Binding XXX}" HorizontalAlignment="Center" VerticalAlignment="Center"
                                                   Visibility="{Binding ShowDefaultTemplate, Converter={StaticResource visibilityConverter}}" />
                         <ComboBox HorizontalAlignment="Left"  MinHeight="24" Width="100" 
    
    
                                                  ItemsSource="{Binding Source, Source={StaticResource Provider}}" 
                                                  Visibility="{Binding ShowEditableTemplate , Converter={StaticResource visibilityConverter}}" 
                                                  SelectedItem = "{Binding SelctedItem,Mode=TwoWay}" />
    
                </StackPanel>
     </DataTemplate>
    

    Thanks,
    Vijay

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Silverlight DataGrid that contains a single template column which displays a
In my silverlight application I use a data grid. I have a column with
I have a data grid, where I create columns on the fly in the
I have a Silverlight app with a DataGrid containing some custom columns and all
I have a Silverlight DataGrid that's being populated with different types of data for
I have followed this tutorial which allowed me to create a Silverlight DataGrid that
I have a Silverlight 2.0 DataGrid that contains a list of items that needs
I have a simple Silverlight app which simply sets a DataGrid's ItemsSource to the
I have a silverlight datagrid which is bound to a PagedCollectionView displaying a collection
I have a Silverlight 4 DataGrid which has its ItemsSource bound to an ObservableCollection

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.