473,396 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1416
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

29
by: Stanley J Mroczek | last post by:
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
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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,...

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.