Solved

How to unenable some rows of a datagrid?

Posted on 2004-04-21
2
319 Views
Last Modified: 2010-04-07
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
Comment
Question by:Rosa2003
  • 2
2 Comments
 
LVL 35

Expert Comment

by:YZlat
ID: 10884399
you mean how to disable a certain row?
0
 
LVL 35

Accepted Solution

by:
YZlat earned 40 total points
ID: 10884408
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question