473,387 Members | 1,489 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Question on Displaying data in Datagrid


Hi,

I have a result set and it has following information
aID aLname aFname isEnabled
1 Smith Jack 1
2 Jackson Peter 0
3 Johnson Avery 1
4 Maverick Dallas 1
5 Heat Miami 0

when I display this in a datagrid, is there a way for me to gray out or show
the row in a different color where isEnabled = 0 while I am binding it to
the datagrid?

Thanks,
Stephen
Jun 9 '06 #1
2 921
Stephen yes you can.
look through this article at:-
http://www.codeproject.com/aspnet/ItemCreated.asp
it should guide u.
Patrick

"stephen" <st********@hotmail.com> wrote in message
news:e3**************@TK2MSFTNGP05.phx.gbl...

Hi,

I have a result set and it has following information
aID aLname aFname isEnabled
1 Smith Jack 1
2 Jackson Peter 0
3 Johnson Avery 1
4 Maverick Dallas 1
5 Heat Miami 0

when I display this in a datagrid, is there a way for me to gray out or
show the row in a different color where isEnabled = 0 while I am binding
it to the datagrid?

Thanks,
Stephen

Jun 9 '06 #2
Hey Patrick,

Thanks for the link... appreciate it..

Stephen
"Patrick.O.Ige" <na********@hotmail.com> wrote in message
news:uR**************@TK2MSFTNGP02.phx.gbl...
Stephen yes you can.
look through this article at:-
http://www.codeproject.com/aspnet/ItemCreated.asp
it should guide u.
Patrick

"stephen" <st********@hotmail.com> wrote in message
news:e3**************@TK2MSFTNGP05.phx.gbl...

Hi,

I have a result set and it has following information
aID aLname aFname isEnabled
1 Smith Jack 1
2 Jackson Peter 0
3 Johnson Avery 1
4 Maverick Dallas 1
5 Heat Miami 0

when I display this in a datagrid, is there a way for me to gray out or
show the row in a different color where isEnabled = 0 while I am binding
it to the datagrid?

Thanks,
Stephen


Jun 9 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jason | last post by:
I am pretty new to C# so bare with me... The design of my website utilizes tables on every page that look almost identical, save the data they are displaying. I have written the code to create...
5
by: AC | last post by:
Any reason i'm having trouble with: DataGrid1.Columns(7).ItemStyle.HorizontalAlign = HorizontalAlign.Right I'm trying to directly set the column alignment of a datagrid created at runtime.. ...
3
by: vinayak | last post by:
Hi I am displaying data in Datagrid in ASP.NET with Edit/Update functionality for each row. On the same page I have 2 Button controls which submits the request to server. These button controls...
1
by: C Downey | last post by:
I have a web page that I displays the search results from another form. The way I have it developed right now, my data access layer returns me the results as an array (first name, lastname, id). ...
6
by: Shawn | last post by:
Hi. I already have a datagrid where I'm using paging. I have a stored procedure that fills a temp table with 200-500 rows and then sends back 10 records at the time. When I go to page 2 the SP...
12
by: Bishoy George | last post by:
I have a dataset called ds1 filled with 2 tables Employees and Customers from Northwind database. I have dropdownList called ddLastName with the following properties: ddLastName.DataSource =...
6
by: Doug Bell | last post by:
Hi I have a datagrid with a combo box, I need to populate the combo with data dependant on the record value. eg for record 1, field Warehouse = 2R so combo would allow selection of locations...
4
by: Mark | last post by:
Hi Forum, I'm new to ASP.NET and have a basic question. If someone is willing to lay it out for me in an easy way to understand, I have a huge list of tasks I'm willing to pay to get...
0
by: | last post by:
I have a question about spawning and displaying subordinate list controls within a list control. I'm also interested in feedback about the design of my search application. Lots of code is at the...
1
by: Blasting Cap | last post by:
I'm writing an application where users will input data into a SQL table. They'll be entering customer data and a purchase order number. When they submit the PO, it shows a datagrid with the PO...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.