• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 377
  • Last Modified:

How to unenable some rows of a datagrid?

When a datagrid is databinded and its source is a datatable, is it possible to enable or unenable some rows of it?

I mean, I have to show a list of items from a table in a datagrid MyDataGrid:

    Field01                    Field02          Field03
==================================
01  Title 01      False         textbox
02  - Item 01      True         textbox
03  - Item 02      True         textbox

If Field02 = False, then row 01 has to be shown but it has to be unenable, in order to avoid writing on textbox. Is it possible?
0
Rosa2003
Asked:
Rosa2003
  • 2
1 Solution
 
YZlatCommented:
you mean how to disable a certain row?
0
 
YZlatCommented:
if so, you'll have to loop through the datagrid rows and check if that particular column is false. If it is, disable every column in that row.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now