Tuesday, March 13, 2012
The ItemArray
I'm trying to get to an Item of a DataRow.ItemArray.
I can specify the index value and retrieve the item i need but it says you
can get to the item using the ColumnName (string) as well. When I try to
specify the column string it doesn't retrieve it.
Could it be because my GridView is bound to a stored procedure? The store
procedure is returning a table.
thanks,
rodcharThe ItemArray property of a DataRow is of type object array, doesn't expose
a
Column name. You might be thinking of something else.
Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net
"rodchar" wrote:
> hey all,
> I'm trying to get to an Item of a DataRow.ItemArray.
> I can specify the index value and retrieve the item i need but it says you
> can get to the item using the ColumnName (string) as well. When I try to
> specify the column string it doesn't retrieve it.
> Could it be because my GridView is bound to a stored procedure? The store
> procedure is returning a table.
> thanks,
> rodchar
>
I'm sorry I meant the DataRow object.
"Peter Bromberg [C# MVP]" wrote:
> The ItemArray property of a DataRow is of type object array, doesn't expos
e a
> Column name. You might be thinking of something else.
> Peter
> --
> Site: http://www.eggheadcafe.com
> UnBlog: http://petesbloggerama.blogspot.com
> Short urls & more: http://ittyurl.net
>
>
> "rodchar" wrote:
>
rodchar wrote:
> hey all,
> I'm trying to get to an Item of a DataRow.ItemArray.
> I can specify the index value and retrieve the item i need but it says you
> can get to the item using the ColumnName (string) as well. When I try to
> specify the column string it doesn't retrieve it.
> Could it be because my GridView is bound to a stored procedure? The store
> procedure is returning a table.
> thanks,
> rodchar
>
foreach (DataRow r in dtCompare.Rows)
{
string searchNutrNo = r["nutr_no"].ToString();
The ItemArray
I'm trying to get to an Item of a DataRow.ItemArray.
I can specify the index value and retrieve the item i need but it says you
can get to the item using the ColumnName (string) as well. When I try to
specify the column string it doesn't retrieve it.
Could it be because my GridView is bound to a stored procedure? The store
procedure is returning a table.
thanks,
rodcharThe ItemArray property of a DataRow is of type object array, doesn't expose a
Column name. You might be thinking of something else.
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net
"rodchar" wrote:
Quote:
Originally Posted by
hey all,
I'm trying to get to an Item of a DataRow.ItemArray.
I can specify the index value and retrieve the item i need but it says you
can get to the item using the ColumnName (string) as well. When I try to
specify the column string it doesn't retrieve it.
>
Could it be because my GridView is bound to a stored procedure? The store
procedure is returning a table.
>
thanks,
rodchar
>
>
I'm sorry I meant the DataRow object.
"Peter Bromberg [C# MVP]" wrote:
Quote:
Originally Posted by
The ItemArray property of a DataRow is of type object array, doesn't expose a
Column name. You might be thinking of something else.
Peter
>
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net
>
>
>
>
"rodchar" wrote:
>
Quote:
Originally Posted by
hey all,
I'm trying to get to an Item of a DataRow.ItemArray.
I can specify the index value and retrieve the item i need but it says you
can get to the item using the ColumnName (string) as well. When I try to
specify the column string it doesn't retrieve it.
Could it be because my GridView is bound to a stored procedure? The store
procedure is returning a table.
thanks,
rodchar
rodchar wrote:
Quote:
Originally Posted by
hey all,
I'm trying to get to an Item of a DataRow.ItemArray.
I can specify the index value and retrieve the item i need but it says you
can get to the item using the ColumnName (string) as well. When I try to
specify the column string it doesn't retrieve it.
>
Could it be because my GridView is bound to a stored procedure? The store
procedure is returning a table.
>
thanks,
rodchar
>
>
foreach (DataRow r in dtCompare.Rows)
{
string searchNutrNo = r["nutr_no"].ToString();
The language behind www.microsoft.com
extension, but it does not look like ASP.NET webpage. It does not have
__VIEWSTATE, it doesn't have <form> in the body... Just tones of
JavaScript.
Anyone any idea what is the language behind it?BTW it is the same with MSN.com. It is even XHTML Strict, which is
strange for Microsoft...
On 20 Mar 2007 11:35:25 -0700, georgi.ivanov@.gmail.com wrote:
> The index http://www.microsoft.com/en/us/default.aspx has .aspx
> extension, but it does not look like ASP.NET webpage. It does not have
> __VIEWSTATE, it doesn't have <form> in the body... Just tones of
> JavaScript.
> Anyone any idea what is the language behind it?
The aspx extension does not necessarily mean asp.net. For all we know they
may be using ruby on rails but mapped the .aspx extension to ruby!!! :)
--
Bits.Bytes
http://bytes.thinkersroom.com
On Mar 20, 7:35 pm, "georgi.iva...@.gmail.com"
<georgi.iva...@.gmail.com> wrote:
> The indexhttp://www.microsoft.com/en/us/default.aspxhas .aspx
> extension, but it does not look like ASP.NET webpage. It does not have
> __VIEWSTATE, it doesn't have <form> in the body... Just tones of
> JavaScript.
> Anyone any idea what is the language behind it?
it's not a language, it's Microsoft Office SharePoint Server 2007
The language behind www.microsoft.com
extension, but it does not look like ASP.NET webpage. It does not have
__VIEWSTATE, it doesn't have <formin the body... Just tones of
JavaScript.
Anyone any idea what is the language behind it?BTW it is the same with MSN.com. It is even XHTML Strict, which is
strange for Microsoft...
On 20 Mar 2007 11:35:25 -0700, georgi.ivanov@.gmail.com wrote:
Quote:
Originally Posted by
The index http://www.microsoft.com/en/us/default.aspx has .aspx
extension, but it does not look like ASP.NET webpage. It does not have
__VIEWSTATE, it doesn't have <formin the body... Just tones of
JavaScript.
>
Anyone any idea what is the language behind it?
The aspx extension does not necessarily mean asp.net. For all we know they
may be using ruby on rails but mapped the .aspx extension to ruby!!! :)
--
Bits.Bytes
http://bytes.thinkersroom.com
On Mar 20, 7:35 pm, "georgi.iva...@.gmail.com"
<georgi.iva...@.gmail.comwrote:
Quote:
Originally Posted by
The indexhttp://www.microsoft.com/en/us/default.aspxhas .aspx
extension, but it does not look like ASP.NET webpage. It does not have
__VIEWSTATE, it doesn't have <formin the body... Just tones of
JavaScript.
>
Anyone any idea what is the language behind it?
it's not a language, it's Microsoft Office SharePoint Server 2007