Thursday, March 29, 2012

Please dont laugh

Want to configure properties of a datagrid in C# during runtime. I want to
run the following simple command:

DataGrid1.AutoGenerateColumns=False;

But I am presented with error that name "False" does not exist in my class
etc...

Do I need to reference some dll or what?Is it C# or VB.NET if it's C# it's called false not False.

"gale" <srdjan.m@.datagate.net> skrev i meddelandet
news:b9l8ntj1vl03.1svtfcby90pq7$.dlg@.40tude.net...
> Want to configure properties of a datagrid in C# during runtime. I want to
> run the following simple command:
> DataGrid1.AutoGenerateColumns=False;
> But I am presented with error that name "False" does not exist in my class
> etc...
> Do I need to reference some dll or what?
gale <srdjan.m@.datagate.net> typed:
> Want to configure properties of a datagrid in C# during runtime. I
> want to run the following simple command:
> DataGrid1.AutoGenerateColumns=False;
> But I am presented with error that name "False" does not exist in my
> class etc...
> Do I need to reference some dll or what?

Remember that C# is case sensitive. So you should write:

DataGrid1.AutoGenerateColumns = false;

--
Davide Vernole
MVP ASP/ASP.NET
Microsoft Certified Solution Developer
ignore my question, figured it out...
C# is case sensitive. The keyword is false (rather than False with a capital
letter).

Patrice

--

"gale" <srdjan.m@.datagate.net> a crit dans le message de
news:b9l8ntj1vl03.1svtfcby90pq7$.dlg@.40tude.net...
> Want to configure properties of a datagrid in C# during runtime. I want to
> run the following simple command:
> DataGrid1.AutoGenerateColumns=False;
> But I am presented with error that name "False" does not exist in my class
> etc...
> Do I need to reference some dll or what?
On Thu, 14 Oct 2004 14:27:53 +0200, gale <srdjan.m@.datagate.net>
wrote:

>Want to configure properties of a datagrid in C# during runtime. I want to
>run the following simple command:
>DataGrid1.AutoGenerateColumns=False;
>But I am presented with error that name "False" does not exist in my class
>etc...
>Do I need to reference some dll or what?

Have you tried:

DataGrid1.AutoGenerateColumns=false;

(c# is case-sensitive)
And that's why I use VB.Net
:)

David Wier
MCP, MVP ASP.NET, ASPInsider
http://aspnet101.com
http://aspexpress.com

"Patrice" <nobody@.nowhere.com> wrote in message
news:O33WNsesEHA.2948@.TK2MSFTNGP12.phx.gbl...
> C# is case sensitive. The keyword is false (rather than False with a
capital
> letter).
> Patrice
> --
> "gale" <srdjan.m@.datagate.net> a crit dans le message de
> news:b9l8ntj1vl03.1svtfcby90pq7$.dlg@.40tude.net...
> > Want to configure properties of a datagrid in C# during runtime. I want
to
> > run the following simple command:
> > DataGrid1.AutoGenerateColumns=False;
> > But I am presented with error that name "False" does not exist in my
class
> > etc...
> > Do I need to reference some dll or what?

0 comments:

Post a Comment