473,378 Members | 1,507 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,378 software developers and data experts.

blank cells not showing

How do I get blank cells to show in my dataGrid?

I am databinding to my datagrid, but any cells that are blank, don't show.

Normally, you would put an &nbsp in the cell to make IE display the cell
normally. In other browsers you can use the css statement empty-cells:show.
But this doesn't work in IE.

Thanks,

Tom
Nov 19 '05 #1
3 1955
Tom,

What do you mean? What do you want to see at empty cells?

Eliyahu

"tshad" <tf*@dslextreme.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
How do I get blank cells to show in my dataGrid?

I am databinding to my datagrid, but any cells that are blank, don't show.

Normally, you would put an &nbsp in the cell to make IE display the cell
normally. In other browsers you can use the css statement empty-cells:show. But this doesn't work in IE.

Thanks,

Tom

Nov 19 '05 #2
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Tom,

What do you mean? What do you want to see at empty cells?
In IE, if you don't have anything in a cell and you have borders on, the
cells will look different than cells that have something in them.
Typically, you would put a &nbsp; in them. I Mozilla you would can use the
CSS tag "empty-cells:show", but this does not work in IE.

Very irritating with the different browsers. Knowing what css feature will
work or how it will work in each browser.

Anyway, the problem is how do I put a &nbsp in a cell that has no data
coming back (or null) from my Sql Server when dealing with a DataGrid and
it's bound columns when using DataBind? I don't want to have to go through
each cell of each row of the datagrid to find out if it is empty and add an
&nbsp to it.

I was hoping there would be a better way.

Thanks,

Tom
Eliyahu

"tshad" <tf*@dslextreme.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
How do I get blank cells to show in my dataGrid?

I am databinding to my datagrid, but any cells that are blank, don't show.
Normally, you would put an &nbsp in the cell to make IE display the cell
normally. In other browsers you can use the css statement

empty-cells:show.
But this doesn't work in IE.

Thanks,

Tom


Nov 19 '05 #3
As far as I know that what is happening. You always get &nbsp in every empty
cell. Did you view the html source of the page in the browser?

Eliyahu

"tshad" <tf*@dslextreme.com> wrote in message
news:Oy**************@TK2MSFTNGP14.phx.gbl...
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Tom,

What do you mean? What do you want to see at empty cells?
In IE, if you don't have anything in a cell and you have borders on, the
cells will look different than cells that have something in them.
Typically, you would put a &nbsp; in them. I Mozilla you would can use

the CSS tag "empty-cells:show", but this does not work in IE.

Very irritating with the different browsers. Knowing what css feature will work or how it will work in each browser.

Anyway, the problem is how do I put a &nbsp in a cell that has no data
coming back (or null) from my Sql Server when dealing with a DataGrid and
it's bound columns when using DataBind? I don't want to have to go through each cell of each row of the datagrid to find out if it is empty and add an &nbsp to it.

I was hoping there would be a better way.

Thanks,

Tom

Eliyahu

"tshad" <tf*@dslextreme.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
How do I get blank cells to show in my dataGrid?

I am databinding to my datagrid, but any cells that are blank, don't show.
Normally, you would put an &nbsp in the cell to make IE display the cell normally. In other browsers you can use the css statement

empty-cells:show.
But this doesn't work in IE.

Thanks,

Tom



Nov 19 '05 #4

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

Similar topics

2
by: Alex Rybalov | last post by:
Hi, Using IIS 5.0 and sometime some asp pages (absolutely randomly) showing as blank white pages. So far only one way of fixing it - restart whole server. Restarting IIS, or specific web server...
1
by: Tamturr | last post by:
Hello I know I saw the answer to this question here a while ago (when I didn't need the answer :) ) and I can't for the life of me find it, so I apologize. My problem is this: I want to copy a...
3
by: Simon Prince | last post by:
Hi, I'm trying detect an empty cell in a datagrid when the content is posted back to the server. My code is... Dim vDgi_GridItem As DataGridItem For Each vDgi_GridItem In...
1
by: Roy | last post by:
Hey All, Kind of a series of anomalies here with one root source, I believe. I have an editable, paging datagrid. 1.When one clicks "edit" textboxes open up on row x, HOWEVER, if one clicks...
6
by: tshad | last post by:
If you have nothing in a cell, the cell doesn't have the inset appearance that all the other cells do. Normally, you could just put a "&ndsp;" in the cell if the it is blank. But how do you do...
6
by: RigasMinho | last post by:
I have a table that is made in XSL that grabs the information from an XML sheet. However any cell that is blank in XML the border doesnt show up when you view it. Is there a work around for...
0
by: yongsheng | last post by:
Hi, i've searched through the discussions but haven't got a clue to solve my problem. Im new to VBA, maybe its a simple task but any help is welcomed. The Problem: Every month, I need to sort...
2
by: shantanu | last post by:
Dear All My requirement is to count the number of cells which are blank in a excel column, for that i am writing the following code;;;;;;;;;;;;;;;;; private void ValidateReviewComment() {...
0
by: GiftX | last post by:
Hellow everyone, I am calling/manipulating Excel spreadsheet through VB 6.0. Most of my objectives are accomplished except some cosmetics. Problem#1: For example, after running my program to...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.