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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:48:18+00:00 2026-06-07T11:48:18+00:00

I want it to only be possible to select one cell in a DataGrid.

  • 0

I want it to only be possible to select one cell in a DataGrid. With multi select disabled, you can still select a range of cells, but I want it to only allow a single-cell selection. Is there any way to do this through the properties? Or will I have to intercept the selection and filter out everything but one cell?

  • 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-06-07T11:48:20+00:00Added an answer on June 7, 2026 at 11:48 am

    The DataGrid has a SelectionUnit property of type DataGridSelectionUnit, in conjunction with SelectionMode:

    The SelectionMode and SelectionUnit properties together define the
    selection behavior for the DataGrid.

    Try setting SelectionUnit to Cell. This will work with both SelectionMode values:

    If the selection mode is Extended, the user can select multiple items
    where the item type is defined by the SelectionUnit property. If the
    selection mode is Single, the user can only select single items.

    To select a single cell, use SelectionMode of Single and SelectionUnit of Cell:

    The SelectionMode and SelectionUnit properties together determine how
    users can select items in a DataGrid. For example, if the
    SelectionMode is Single and the SelectionUnit is Cell, the user can
    select only one cell at a time in the DataGrid.

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

Sidebar

Related Questions

can anyone tell me if its possible to select only the divs 2a and
In Jqgrid, I want to restrict user to select only one check box at
I'm trying to solve this issue with only one select. It can be easily
Is it possible to use select * for only one table when using a
Possible Duplicate: Namespace only class visibility in C#/.NET ? What I want is to
I want to ask, is possible to create on-line card game, only with using
I used HTTPService for reading xml, but I want only a particular xml field
I am making a payment system for my site. Users can select one of
is possible make insert in the table with only one column and this column
Is it possible to use XPath to select only the nodes that have a

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.