Solved

How to unenable some rows of a datagrid?

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This video discusses moving either the default database or any database to a new volume.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

746 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

10 Experts available now in Live!

Get 1:1 Help Now