473,508 Members | 2,249 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Customizing the DataGrid

MRW
Hello!

I'm working on a DataGrid and I've run into two problems.

1) When there are no records, I want the datagrid to show up still,
(since I have a header and footer), so I simply want a message to show
up where the information would show up if it were there.

2) I'm also looking to customize one of the fields. Lets say if FieldA
is below zero, then the font color should be red instead of black. Is
there anyway to do such a customization?

Thanks for any help!

Mar 10 '06 #1
2 1002
MRW..
Try looking at this 2 events of the DataGrid
The onItemdatabound and Itemcreated.
Hope that helps
patrick

"MRW" <mw*****@yahoo.com> wrote in message
news:11**********************@p10g2000cwp.googlegr oups.com...
Hello!

I'm working on a DataGrid and I've run into two problems.

1) When there are no records, I want the datagrid to show up still,
(since I have a header and footer), so I simply want a message to show
up where the information would show up if it were there.

2) I'm also looking to customize one of the fields. Lets say if FieldA
is below zero, then the font color should be red instead of black. Is
there anyway to do such a customization?

Thanks for any help!

Mar 10 '06 #2
MRW
I'll take a look. Thanks for the help!

Mar 11 '06 #3

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

Similar topics

2
1741
by: Job Lot | last post by:
I am customizing DataGridTextBoxColumn. How can I access properties in DataGrid to which custom DataGridTextBoxColumn will be added. Say for instance, how I would access SelectionBackColor...
4
6655
by: VR | last post by:
I am trying to embed a check box into a FlexGrid's cell, but having a problem when I start scrolling the grid. Here is my MyCheckBox class... class MyCheckBox : CheckBox { void Init (...
2
1095
by: Adnan Chaudhry | last post by:
Hi I am developing a generic data-grid for custom needs. Is it possible to inherit existing ASP.NET datagrid and overriding as well as introducing further functionality ? Even the simplest...
1
1542
by: JD | last post by:
Hello Everyone, I am trying to do a page where when the user gets to the page it will look very similar to the following: <table border=1> <tr> <td bgcolor="green" colspan="2">Main...
2
298
by: Job Lot | last post by:
I am customizing DataGridTextBoxColumn. How can I access properties in DataGrid to which custom DataGridTextBoxColumn will be added. Say for instance, how I would access SelectionBackColor...
0
7123
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
7326
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
7383
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5627
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5053
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1557
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.