Solved

How to unenable some rows of a datagrid?

Posted on 2004-04-21
2
305 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
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…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

932 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now