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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:34:25+00:00 2026-05-31T18:34:25+00:00

I´ve got the following DataGrid: <DataGrid AutoGenerateColumns=True Grid.ColumnSpan=9 Grid.Row=2 Grid.RowSpan=8 Height=583 HorizontalAlignment=Left Name=dgAufgaben VerticalAlignment=Top

  • 0

I´ve got the following DataGrid:

 <DataGrid AutoGenerateColumns="True" Grid.ColumnSpan="9" Grid.Row="2" Grid.RowSpan="8" Height="583" HorizontalAlignment="Left" Name="dgAufgaben" VerticalAlignment="Top" Width="1344" AlternatingRowBackground="#E6DBDBDB" RowHeight="55">
            <DataGrid.Columns>
                <DataGridCheckBoxColumn Header="sseas"></DataGridCheckBoxColumn>
            </DataGrid.Columns>
</DataGrid>

which I fill in this way:

        DataSet ds = new DataSet();
        aufrep.GetAufgaben(ds, loginid);
        dgAufgaben.DataContext = ds;
        dgAufgaben.ItemsSource = ds.Tables[0].DefaultView;

So the data, that I receive out of my database are in the DataSet, the columns are autogenerated. The problem is, that I don´t know how to set the CheckboxColumn to the value of a column of my DataSet. (One column cointains 0 and 1 values)

How can I manage this?

  • 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-31T18:34:26+00:00Added an answer on May 31, 2026 at 6:34 pm

    You do know with AutoGenerate = true it will probably create that column a second time. In SQL bool is bit (0,1). You just bind to that column.

            DataGridCheckBoxColumn 
            Header="New?" 
            Width="40"
            Binding="{Binding IsNew}"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i've got following example xml: <entity id=1> <name>computer</name> <type>category</type> <entities> <entity id=2> <name>mac</name> <type>category</type>
I have got following folder structure for my domain (domain.com): /data/images (it´s subdomain name,
I have got following html <a disabled=disabled><img alt=First src=/Content/Images/Grid/disabledFirst.png></a> And I run following expect
I've got following html structure: <div style=width:100%> <div style=float:left; width:70%><input /></div> <div style=float:left>element with
I got following code in my asp.net application <aspext:ToolkitScriptManager ID=ToolkitScriptManager1 runat=server> <Scripts> <asp:ScriptReference Name=AjaxControlToolkit.Common.Common.js
I got the following example of a WPF DataGrid bound to a ViewModel in
I got following code in an XHTML-document and every browser saysit is malformed :(
I got following error... System.NullReferenceException: Object reference not set to an instance of an
I've got following problem: (c#) There is some class (IRC bot), which has method,
I've got following URL in symfony (specifics not important): /frontend_dev.php/something/25/apple ... and a routing

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.