473,651 Members | 2,987 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1973
Tom,

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

Eliyahu

"tshad" <tf*@dslextreme .com> wrote in message
news:%2******** ********@TK2MSF TNGP15.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.co m> wrote in message
news:%2******** ********@tk2msf tngp13.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******** ********@TK2MSF TNGP15.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******** ******@TK2MSFTN GP14.phx.gbl...
"Eliyahu Goldin" <re************ *@monarchmed.co m> wrote in message
news:%2******** ********@tk2msf tngp13.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******** ********@TK2MSF TNGP15.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
3092
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 not helping, only whole server. I enable server side and client side debugging, but no errors showing up...
1
1347
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 list, but not blank cells. For example, assuming it is just columns A and B, I would want column B to list all the non-blank cells from column A. Thank you so much for your help.
3
1869
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 oASP_Dgd_Receptions.Items Response.Write( CType( vDgi_GridItem.Cells(10).Text.trim.length ,
1
1847
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 "next page" the textboxes remain no matter which page you are on. No error messages are shown. 2.After editing data, when one clicks "update" the page refreshes, but *no* new data is actually loaded into the db. No error messages are
6
1344
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 this if you are binding it? <asp:TemplateColumn Visible="true" HeaderText="JobTitle" ItemStyle-Font-Bold="true" ItemStyle-Width="195px" ItemStyle-VerticalAlign="Top">
6
3438
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 this? For example in my XML file i have: <test title='information 1'text cell 1</test>
0
1304
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 data in an excel sheet where each set of data is submitted in 3 rows. In these rows, some cells are merged and some are not. As such, i get empty blank rows in between. My aim is to remove all these blanks by deleting the whole row. Data in merge...
2
4662
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() { //Range xlsRng = _sheet.get_Range("G1",Type.Missing).EntireColumn; //MessageBox.Show(xlsRng.EntireColumn.Count.ToString()); Range xlsRng = _sheet.UsedRange;
0
1184
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 process a single record, when I proceed to print it, it prints the first page containing the processed record. It also prints 5 more blank pages without any record. Problem#2: Also, my intention is to print an Underline after writing each record,...
0
8361
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8807
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8701
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8466
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8584
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7299
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4290
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1912
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1588
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.