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

  • Home
  • SEARCH
  • 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 1114399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T03:00:00+00:00 2026-05-17T03:00:00+00:00

I develop desktop-based WPF-application, that uses SQL Server 2008 R2 Database and ADO.NET Entity

  • 0

I develop desktop-based WPF-application, that uses SQL Server 2008 R2 Database and ADO.NET Entity Framework as connection tool between database and application.

In one of the windows, there is a need to show the content of database’s table and let user to perform some manipulations, such as add new record to database, edit selected record and delete selected record.

In order to do this I want to use webmail design pattern, in other words, I want that my window looked exactly as Gmail’s inbox, where user can choose letter (in my case row with record from DB), click on mail and see its details, click on checkbox will select a row and let user to delete it.

To do this I’m using a DataGrid control via data binding mechanism:

IBindingList Users = ((from d in App.Context.tbl_users
            select new { d.userID, d.userName, d.userPassword }
          ) as IListSource).GetList() as IBindingList;
this.ContentGrid.DataContext = Users;

As result, I get a DataGrid table with data from DB, but I don’t know how to:

  1. Let user choose a record by clicking on checkbox and highlight this row
  2. Remove the specifically selected row from DB & DataGrid by clicking on "Delete button"
  3. Set bigger row height/padding to make more clear/air interface

I read a some of the articles, but can’t find solution or examples for my question. Please, could you point me to related articles/sites or suggest an example how to implement it?

  • 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-17T03:00:01+00:00Added an answer on May 17, 2026 at 3:00 am

    Normally with DataGrid, clicking on row or the left-hand row-header (“gutter”?) will select the row.

    The user can delete the row by pressing the delete key, or you could do it programmaticly (eg. in a command) by getting the selected item from DataGrid.SelectedItem (or SelectedItems if you enabled multi-selection), then deleting it from your DB.

    For row height, check out DataGrid.RowHeight

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

Sidebar

Related Questions

I want to develop a client-server based desktop application using .Net 4, C# and
I want to develop google desktop search like application, I want to know that
I've got a .NET 2.0 Windows desktop application (time-sheets) which i develop and wanted
In my current project we have to develop a good looking desktop based application
Is there a framework to develop Desktop Database applications (some screens with CRUD screens)
I'm planning to develop a remote desktop system consisting of: The desktop application that
i develop an java desktop application which consome sqlite database. (My pc, windows 7
I want to develop a simple java based application that can connect to facebook
I am planing to develop desktop application that will have multiple logins and according
I need to develop a desktop application that shows the contents of RSS feeds

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.