Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Nathan Sokalski #1
Avoiding empty cells in a DataList
I have a DataList with a RepeatColumns property that has a value of 3.
However, when the number of items is not divisible by 3, I have blank cells
at the end of the list, which makes the DataList look somewhat ugly. Is
there a way to avoid this? Thanks.
I also use an AlternatingItemTemplate with a different BackColor property
than my ItemTemplate. However, depending on the number of items my DataList
might end up looking like a checkerboard if the first itemtype in each
column is different. Is there some way to "reset" the itemtype for each
column? I would rather not need to set the BackColor manually for each item
using the ItemDataBound event. Thanks.
--
Nathan Sokalski
[email]njsokalski@hotmail.com[/email]
[url]http://www.nathansokalski.com/[/url]
Nathan Sokalski Guest
-
An adding template for an empty datagrid/ datalist
When a SQL query returns 0 results. I can not use the editItemTemplate to add a new record in to the table. Is there anyway to use these... -
#26380 [Opn]: empty($SimpleXMLObject) doesn't return true when empty
ID: 26380 User updated by: bart at mediawave dot nl -Summary: Find out whether an object is empty Reported By: bart... -
#25885 [Opn->Csd]: mail() causes apache2 to crash when message is empty, and headers is non-empty
ID: 25885 Updated by: sniper@php.net Reported By: ben at krackeler dot com -Status: Open +Status: ... -
#25885 [NEW]: mail() causes apache2 to crash when message is empty, and headers is non-empty
From: ben at krackeler dot com Operating system: WinXP PHP version: 4.3.3 PHP Bug Type: Mail related Bug description: ... -
Cells[].Text or Cells[].Controls[0]
Folks, The following code illustrates two methods of obtaining the contents of a DataGrid Item. The function has been bound to the ItemCommand of... -
Eliyahu Goldin #2
Re: Avoiding empty cells in a DataList
Don't use AlternatingItemTemplate. Rather use PreRender event to loop
through the items and set their BackColor depending on the item position in
the row.
Eliyahu
"Nathan Sokalski" <njsokalski@hotmail.com> wrote in message
news:%23L7GQwuvFHA.3452@TK2MSFTNGP14.phx.gbl...cells> I have a DataList with a RepeatColumns property that has a value of 3.
> However, when the number of items is not divisible by 3, I have blankDataList> at the end of the list, which makes the DataList look somewhat ugly. Is
> there a way to avoid this? Thanks.
>
> I also use an AlternatingItemTemplate with a different BackColor property
> than my ItemTemplate. However, depending on the number of items myitem> might end up looking like a checkerboard if the first itemtype in each
> column is different. Is there some way to "reset" the itemtype for each
> column? I would rather not need to set the BackColor manually for each> using the ItemDataBound event. Thanks.
> --
> Nathan Sokalski
> [email]njsokalski@hotmail.com[/email]
> [url]http://www.nathansokalski.com/[/url]
>
>
Eliyahu Goldin Guest



Reply With Quote

