468,784 Members | 1,612 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,784 developers. It's quick & easy.

EditCommandColumn w can set it to Visible=true for some users?

I Set the EditCommandColumn to Visible=False to stop people who are not
allowed to make any changes to a record. How can set it to Visible=true for
some users? Please answer in VB
Thanks
Stan

Jul 21 '05 #1
18 1289
Do you have the users log on? How are you authenticating users?

What is your backend database, and what does your connection string look
like?

Jeff
"Stanley J Mroczek" <St*************@discussions.microsoft.com> wrote in
message news:A7**********************************@microsof t.com...
I Set the EditCommandColumn to Visible=False to stop people who are not
allowed to make any changes to a record. How can set it to Visible=true for some users? Please answer in VB
Thanks
Stan

Jul 21 '05 #2
Yes I authenticating users , I use a <add key="ConnectionString"
value="server=xxxx;uid=xxk;pwd=xx;database=xx;"/>

all i want to know is how do you Set the EditCommandColumn to Visible=True?
"Jeff Dillon" wrote:
Do you have the users log on? How are you authenticating users?

What is your backend database, and what does your connection string look
like?

Jeff
"Stanley J Mroczek" <St*************@discussions.microsoft.com> wrote in
message news:A7**********************************@microsof t.com...
I Set the EditCommandColumn to Visible=False to stop people who are not
allowed to make any changes to a record. How can set it to Visible=true

for
some users? Please answer in VB
Thanks
Stan


Jul 21 '05 #3
Yes, but how do you tell one user from another?

Jeff

"Stanley J Mroczek" <St*************@discussions.microsoft.com> wrote in
message news:56**********************************@microsof t.com...
Yes I authenticating users , I use a <add key="ConnectionString"
value="server=xxxx;uid=xxk;pwd=xx;database=xx;"/>

all i want to know is how do you Set the EditCommandColumn to Visible=True?

"Jeff Dillon" wrote:
Do you have the users log on? How are you authenticating users?

What is your backend database, and what does your connection string look
like?

Jeff
"Stanley J Mroczek" <St*************@discussions.microsoft.com> wrote in
message news:A7**********************************@microsof t.com...
I Set the EditCommandColumn to Visible=False to stop people who are not allowed to make any changes to a record. How can set it to
Visible=true for
some users? Please answer in VB
Thanks
Stan


Jul 21 '05 #4

By the code in the user record

"Jeff Dillon" wrote:
Yes, but how do you tell one user from another?

Jeff

"Stanley J Mroczek" <St*************@discussions.microsoft.com> wrote in
message news:56**********************************@microsof t.com...
Yes I authenticating users , I use a <add key="ConnectionString"
value="server=xxxx;uid=xxk;pwd=xx;database=xx;"/>

all i want to know is how do you Set the EditCommandColumn to

Visible=True?


"Jeff Dillon" wrote:
Do you have the users log on? How are you authenticating users?

What is your backend database, and what does your connection string look
like?

Jeff
"Stanley J Mroczek" <St*************@discussions.microsoft.com> wrote in
message news:A7**********************************@microsof t.com...
> I Set the EditCommandColumn to Visible=False to stop people who are not > allowed to make any changes to a record. How can set it to Visible=true for
> some users? Please answer in VB
> Thanks
> Stan
>


Jul 21 '05 #5
Um...HOW do you determine a user? How do "retrieve" the code in the user
record? How do you modify the where clause to retrieve the correct "user
record". How are you authenticating and validating users? Do you have a
login screen?

Jeff

"Stanley J Mroczek" <St*************@discussions.microsoft.com> wrote in
message news:C2**********************************@microsof t.com...

By the code in the user record

"Jeff Dillon" wrote:
Yes, but how do you tell one user from another?

Jeff

"Stanley J Mroczek" <St*************@discussions.microsoft.com> wrote in
message news:56**********************************@microsof t.com...
Yes I authenticating users , I use a <add key="ConnectionString"
value="server=xxxx;uid=xxk;pwd=xx;database=xx;"/>

all i want to know is how do you Set the EditCommandColumn to

Visible=True?


"Jeff Dillon" wrote:

> Do you have the users log on? How are you authenticating users?
>
> What is your backend database, and what does your connection string look > like?
>
> Jeff
> "Stanley J Mroczek" <St*************@discussions.microsoft.com> wrote in > message news:A7**********************************@microsof t.com...
> > I Set the EditCommandColumn to Visible=False to stop people who
are not
> > allowed to make any changes to a record. How can set it to

Visible=true
> for
> > some users? Please answer in VB
> > Thanks
> > Stan
> >
>
>
>


Jul 21 '05 #6
Forget about the user Can i set the column to true?

all i want to know is how do you Set the EditCommandColumn to
Visible=True?

"Jeff Dillon" wrote:
Um...HOW do you determine a user? How do "retrieve" the code in the user
record? How do you modify the where clause to retrieve the correct "user
record". How are you authenticating and validating users? Do you have a
login screen?

Jeff

"Stanley J Mroczek" <St*************@discussions.microsoft.com> wrote in
message news:C2**********************************@microsof t.com...

By the code in the user record

"Jeff Dillon" wrote:
Yes, but how do you tell one user from another?

Jeff

"Stanley J Mroczek" <St*************@discussions.microsoft.com> wrote in
message news:56**********************************@microsof t.com...
> Yes I authenticating users , I use a <add key="ConnectionString"
> value="server=xxxx;uid=xxk;pwd=xx;database=xx;"/>
>
> all i want to know is how do you Set the EditCommandColumn to
Visible=True?
>
>
> "Jeff Dillon" wrote:
>
> > Do you have the users log on? How are you authenticating users?
> >
> > What is your backend database, and what does your connection string look > > like?
> >
> > Jeff
> > "Stanley J Mroczek" <St*************@discussions.microsoft.com> wrote in > > message news:A7**********************************@microsof t.com...
> > > I Set the EditCommandColumn to Visible=False to stop people who are not
> > > allowed to make any changes to a record. How can set it to
Visible=true
> > for
> > > some users? Please answer in VB
> > > Thanks
> > > Stan
> > >
> >
> >
> >


Jul 21 '05 #7
Based on what "If" condition? I know the answer...if you answer my
question.

Jeff

"Stanley J Mroczek" <St*************@discussions.microsoft.com> wrote in
message news:F2**********************************@microsof t.com...
Forget about the user Can i set the column to true?

all i want to know is how do you Set the EditCommandColumn to
Visible=True?

"Jeff Dillon" wrote:
Um...HOW do you determine a user? How do "retrieve" the code in the user record? How do you modify the where clause to retrieve the correct "user record". How are you authenticating and validating users? Do you have a
login screen?

Jeff

"Stanley J Mroczek" <St*************@discussions.microsoft.com> wrote in
message news:C2**********************************@microsof t.com...

By the code in the user record

"Jeff Dillon" wrote:

> Yes, but how do you tell one user from another?
>
> Jeff
>
> "Stanley J Mroczek" <St*************@discussions.microsoft.com> wrote in > message news:56**********************************@microsof t.com...
> > Yes I authenticating users , I use a <add key="ConnectionString"
> > value="server=xxxx;uid=xxk;pwd=xx;database=xx;"/>
> >
> > all i want to know is how do you Set the EditCommandColumn to
> Visible=True?
> >
> >
> > "Jeff Dillon" wrote:
> >
> > > Do you have the users log on? How are you authenticating users?
> > >
> > > What is your backend database, and what does your connection string
look
> > > like?
> > >
> > > Jeff
> > > "Stanley J Mroczek" <St*************@discussions.microsoft.com>

wrote in
> > > message
news:A7**********************************@microsof t.com... > > > > I Set the EditCommandColumn to Visible=False to stop people

who are
> not
> > > > allowed to make any changes to a record. How can set it to
> Visible=true
> > > for
> > > > some users? Please answer in VB
> > > > Thanks
> > > > Stan
> > > >
> > >
> > >
> > >
>
>
>


Jul 21 '05 #8

What are 6 year old?
I am trying to a get a answer and your playing games. I am working to hard
to play foget it!!

"Stanley J Mroczek" wrote:
Yes I authenticating users , I use a <add key="ConnectionString"
value="server=xxxx;uid=xxk;pwd=xx;database=xx;"/>

all i want to know is how do you Set the EditCommandColumn to Visible=True?
"Jeff Dillon" wrote:
Do you have the users log on? How are you authenticating users?

What is your backend database, and what does your connection string look
like?

Jeff
"Stanley J Mroczek" <St*************@discussions.microsoft.com> wrote in
message news:A7**********************************@microsof t.com...
I Set the EditCommandColumn to Visible=False to stop people who are not
allowed to make any changes to a record. How can set it to Visible=true

for
some users? Please answer in VB
Thanks
Stan


Jul 21 '05 #9
Excuse me? Do you want help or not.

By the way, I found your answer..

Jeff

"Stanley J Mroczek" <St*************@discussions.microsoft.com> wrote in
message news:9D**********************************@microsof t.com...

What are 6 year old?
I am trying to a get a answer and your playing games. I am working to hard
to play foget it!!

"Stanley J Mroczek" wrote:
Yes I authenticating users , I use a <add key="ConnectionString"
value="server=xxxx;uid=xxk;pwd=xx;database=xx;"/>

all i want to know is how do you Set the EditCommandColumn to Visible=True?

"Jeff Dillon" wrote:
Do you have the users log on? How are you authenticating users?

What is your backend database, and what does your connection string look like?

Jeff
"Stanley J Mroczek" <St*************@discussions.microsoft.com> wrote in message news:A7**********************************@microsof t.com...
> I Set the EditCommandColumn to Visible=False to stop people who are not > allowed to make any changes to a record. How can set it to Visible=true for
> some users? Please answer in VB
> Thanks
> Stan
>

Jul 21 '05 #10
The reason I asked is because if this was SQL Server, and you had users
login appropriately, then you could limit your result set by using
suser_sname() in your WHERE clause, and not return this column at all for
particular users.

Jeff
"Stanley J Mroczek" <St*************@discussions.microsoft.com> wrote in
message news:9D**********************************@microsof t.com...

What are 6 year old?
I am trying to a get a answer and your playing games. I am working to hard
to play foget it!!

"Stanley J Mroczek" wrote:
Yes I authenticating users , I use a <add key="ConnectionString"
value="server=xxxx;uid=xxk;pwd=xx;database=xx;"/>

all i want to know is how do you Set the EditCommandColumn to Visible=True?

"Jeff Dillon" wrote:
Do you have the users log on? How are you authenticating users?

What is your backend database, and what does your connection string look like?

Jeff
"Stanley J Mroczek" <St*************@discussions.microsoft.com> wrote in message news:A7**********************************@microsof t.com...
> I Set the EditCommandColumn to Visible=False to stop people who are not > allowed to make any changes to a record. How can set it to Visible=true for
> some users? Please answer in VB
> Thanks
> Stan
>

Jul 21 '05 #11
Thank you but i have a code based on A company code. I don't want to use sql
to control the switch to turn the true or false. I would like to control it
in the program.
stan
"je**@removeemergencyreporting.com" wrote:
The reason I asked is because if this was SQL Server, and you had users
login appropriately, then you could limit your result set by using
suser_sname() in your WHERE clause, and not return this column at all for
particular users.

Jeff
"Stanley J Mroczek" <St*************@discussions.microsoft.com> wrote in
message news:9D**********************************@microsof t.com...

What are 6 year old?
I am trying to a get a answer and your playing games. I am working to hard
to play foget it!!

"Stanley J Mroczek" wrote:
Yes I authenticating users , I use a <add key="ConnectionString"
value="server=xxxx;uid=xxk;pwd=xx;database=xx;"/>

all i want to know is how do you Set the EditCommandColumn to Visible=True?

"Jeff Dillon" wrote:

> Do you have the users log on? How are you authenticating users?
>
> What is your backend database, and what does your connection string look > like?
>
> Jeff
> "Stanley J Mroczek" <St*************@discussions.microsoft.com> wrote in > message news:A7**********************************@microsof t.com...
> > I Set the EditCommandColumn to Visible=False to stop people who are not > > allowed to make any changes to a record. How can set it to Visible=true > for
> > some users? Please answer in VB
> > Thanks
> > Stan
> >
>
>
>


Jul 21 '05 #12
Stanley,

In addition to Jeff

You know how to set it to false, to set it to true is the same however
"true" instead of "false"

Cor

"Stanley J Mroczek" <St*************@discussions.microsoft.com>
I Set the EditCommandColumn to Visible=False to stop people who are not
allowed to make any changes to a record. How can set it to Visible=true
for
some users? Please answer in VB
Thanks
Stan

Jul 21 '05 #13
What is wrong with you people if i knew how to set it to false, i would not
ask the question!!!!! How I set to False is <asp:EditCommandColumn
Visible=False EditText="<img src=images/edit.gif border=o align=absmiddle
alt='edit this item'>"
UpdateText="<img src=images/ok.gif border=o align=absmiddle alt='save
changes'>" CancelText="<img src=images/cancel.gif border=o align=absmiddle
alt='cancel editing'>" />
HOW DO I SET IT IN A USER CONTROL?
"Cor Ligthert" wrote:
Stanley,

In addition to Jeff

You know how to set it to false, to set it to true is the same however
"true" instead of "false"

Cor

"Stanley J Mroczek" <St*************@discussions.microsoft.com>
I Set the EditCommandColumn to Visible=False to stop people who are not
allowed to make any changes to a record. How can set it to Visible=true
for
some users? Please answer in VB
Thanks
Stan


Jul 21 '05 #14
Stanley,

Exactly as Jeff, told, by directly suplying what you want. Now you come with
a complete other question.

Blaming people is not the right way to get help, especially not when it is
obviously your own fault that you did not get the right answer..

This was your first question.
I Set the EditCommandColumn to Visible=False to stop people who are not
allowed to make any changes to a record. How can set it to Visible=true for
some users? Please answer in VB
And now it becomes this
What is wrong with you people if i knew how to set it to false, i would
not
ask the question!!!!! How I set to False is <asp:EditCommandColumn
Visible=False EditText="<img src=images/edit.gif border=o align=absmiddle
alt='edit this item'>"
UpdateText="<img src=images/ok.gif border=o align=absmiddle alt='save
changes'>" CancelText="<img src=images/cancel.gif border=o align=absmiddle
alt='cancel editing'>" />
HOW DO I SET IT IN A USER CONTROL?


I hope you find your solution soon.

Cor
Jul 21 '05 #15


"Cor Ligthert" wrote:
Stanley,

Exactly as Jeff, told, by directly suplying what you want. Now you come with
a complete other question.

Blaming people is not the right way to get help, especially not when it is
obviously your own fault that you did not get the right answer..

This was your first question.
I Set the EditCommandColumn to Visible=False to stop people who are not
allowed to make any changes to a record. How can set it to Visible=true for
some users? Please answer in VB


And now it becomes this
What is wrong with you people if i knew how to set it to false, i would
not
ask the question!!!!! How I set to False is <asp:EditCommandColumn
Visible=False EditText="<img src=images/edit.gif border=o align=absmiddle
alt='edit this item'>"
UpdateText="<img src=images/ok.gif border=o align=absmiddle alt='save
changes'>" CancelText="<img src=images/cancel.gif border=o align=absmiddle
alt='cancel editing'>" />
HOW DO I SET IT IN A USER CONTROL?


I hope you find your solution soon.

Cor

Jul 21 '05 #16
Hey,
Try this in your "ItemDataBound" event.
e.Item.Cells(n).visible = "True" where "n" is the position of the cell.

Thanks

"Cor Ligthert" wrote:
Stanley,

Exactly as Jeff, told, by directly suplying what you want. Now you come with
a complete other question.

Blaming people is not the right way to get help, especially not when it is
obviously your own fault that you did not get the right answer..

This was your first question.
I Set the EditCommandColumn to Visible=False to stop people who are not
allowed to make any changes to a record. How can set it to Visible=true for
some users? Please answer in VB


And now it becomes this
What is wrong with you people if i knew how to set it to false, i would
not
ask the question!!!!! How I set to False is <asp:EditCommandColumn
Visible=False EditText="<img src=images/edit.gif border=o align=absmiddle
alt='edit this item'>"
UpdateText="<img src=images/ok.gif border=o align=absmiddle alt='save
changes'>" CancelText="<img src=images/cancel.gif border=o align=absmiddle
alt='cancel editing'>" />
HOW DO I SET IT IN A USER CONTROL?


I hope you find your solution soon.

Cor

Jul 21 '05 #17
no that did not work , But thanks for some kind answer. My prolbem is that It
is a E ditCommandColumn and i know know how to change it theres my code

<asp:datagrid id="CodeDetail" runat="server" OnItemCommand="ItemCommand"
OnEditCommand="EditCommandheader"
OnUpdateCommand="UpdateCommandheader"
OnCancelCommand="CancelCommandHeader" OnItemCreated="ItemCreatedcode">
<Columns>
<asp:BoundColumn DataField="GroupName" HeaderText="Code file" />
<asp:BoundColumn Visible="False" DataField="Program"
HeaderText="Program" />
<asp:BoundColumn Visible="False" DataField="Squence"
HeaderText="Sequence" />
<asp:BoundColumn DataField="Tip" HeaderText="Description" />
<asp:EditCommandColumn Visible=False EditText="<img
src=images/edit.gif border=o align=absmiddle alt='edit this item'>"
UpdateText="<img src=images/ok.gif border=o align=absmiddle alt='save
changes'>" CancelText="<img src=images/cancel.gif border=o align=absmiddle
alt='cancel editing'>" />
<asp:TemplateColumn runat="server">
<itemtemplate>
<asp:HyperLink Runat="server" ImageUrl="images/edit.gif"
NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "Program") %>'
Id="Goprogram" />
<asp:Label Runat="server" Visible=False Text='<%#
DataBinder.Eval(Container.DataItem, "Tip") %>' Id="Tip" />
</itemtemplate>
<EditItemTemplate>
</EditItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:datagrid>

"RNair" wrote:
Hey,
Try this in your "ItemDataBound" event.
e.Item.Cells(n).visible = "True" where "n" is the position of the cell.

Thanks

"Cor Ligthert" wrote:
Stanley,

Exactly as Jeff, told, by directly suplying what you want. Now you come with
a complete other question.

Blaming people is not the right way to get help, especially not when it is
obviously your own fault that you did not get the right answer..

This was your first question.
I Set the EditCommandColumn to Visible=False to stop people who are not
allowed to make any changes to a record. How can set it to Visible=true for
some users? Please answer in VB


And now it becomes this
What is wrong with you people if i knew how to set it to false, i would
not
ask the question!!!!! How I set to False is <asp:EditCommandColumn
Visible=False EditText="<img src=images/edit.gif border=o align=absmiddle
alt='edit this item'>"
UpdateText="<img src=images/ok.gif border=o align=absmiddle alt='save
changes'>" CancelText="<img src=images/cancel.gif border=o align=absmiddle
alt='cancel editing'>" />
HOW DO I SET IT IN A USER CONTROL?


I hope you find your solution soon.

Cor

Jul 21 '05 #18
Don’t talk down to me. I am not an expert programmer and. I am working a 16
hour day trying to get the job done before I get let go. I post a question
and wait for an answer, working on something else until I get the answer. I
don’t see how I got in the program makes any difference my problem is still
that same. Some can display the data and other can change it. I am sorry
that I did not word the question to your likening. But the idea that I have
the answer but I will not give it you unless you answer my question does not
make any sense to me. I am seating waiting for an answer and to get that
response is not what am waiting for. This is not how you share information,
or exchange ideas with others, including experts from around the globe.

"Cor Ligthert" wrote:
Stanley,

Exactly as Jeff, told, by directly suplying what you want. Now you come with
a complete other question.

Blaming people is not the right way to get help, especially not when it is
obviously your own fault that you did not get the right answer..

This was your first question.
I Set the EditCommandColumn to Visible=False to stop people who are not
allowed to make any changes to a record. How can set it to Visible=true for
some users? Please answer in VB


And now it becomes this
What is wrong with you people if i knew how to set it to false, i would
not
ask the question!!!!! How I set to False is <asp:EditCommandColumn
Visible=False EditText="<img src=images/edit.gif border=o align=absmiddle
alt='edit this item'>"
UpdateText="<img src=images/ok.gif border=o align=absmiddle alt='save
changes'>" CancelText="<img src=images/cancel.gif border=o align=absmiddle
alt='cancel editing'>" />
HOW DO I SET IT IN A USER CONTROL?


I hope you find your solution soon.

Cor

Jul 21 '05 #19

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.