Forms Data Controls :: How To Disable / Enable Line Editing If Credentials Are Correct

Apr 16, 2010

Have a gridview that is populated via a DB, which is populated by another tool. That tool records all the data, including the user that submitted it.

The site also enables editing, but I want only the user that submitted the data to have the ability to edit HIS data only, even though the grid view is displaying other people's datas.

So currently the gridview has "ShowEditButton="True"

So on the far left, there is the Edit option for all lines, for all users, for any user viewing the site.

I want to do a verification where,

[Code]....

View 1 Replies


Similar Messages:

Forms Data Controls :: How To Enable Multi Record Editing In A Listview

Jul 14, 2010

I'm trying to create a list of items with a listview (ASP.NET VB) and would like to allow a user to use 1 of 2 checkboxes (or radio buttons), to allow them to mark that record as "approve" or "delete", then once they've made all of their selections, they press a button at the bottom to action each of their requests.

So they might select 10 records to delete and 5 to approve, but I want them to run all at the same time, rather than making them edit a field for them all 1 by 1.

I'm also having a bit of trouble identifying a particular record in my codebehind, is the only way to do it through listview1.items then get the index of it, and compare it to the same sql query somehow?

View 6 Replies

Forms Data Controls :: GridView And Editing Data - Check For Correct Data In Each Field

Apr 7, 2010

I have loaded up a gridview object with data. I have turned on Edit on the grid. It lets me edit the data, but I also want to put some code to check for correct data in each field. I tried to assign a requiredfieldvalitor, comparevaliditor but they don't work. Is there an event I can capture to fire up some code before the grid sves my data?

View 3 Replies

Forms Data Controls :: Disable Editing On Datagrid Column?

Nov 10, 2010

I have a datagrid with 5 columns and i m using edit and update methods over it. In the edit event it opens up all the columns in a row for editing. i need only 2 columns in tat row be editable. how can i do this.

my level of knowledge on asp.net with c# is newbie.

View 6 Replies

Forms Data Controls :: How To Disable Gridview Columns From Editing

Mar 28, 2011

I have a gridview control. I am not using any templatefields or boundfields. The data will be populated dynamically. I am using RowEditing, RowUpdating and RowCancelingEdit events. In RowEditing event, as we know all the cells in that row will become editable, i need to disable few columns(Cells) from editing.

View 1 Replies

Forms Data Controls :: How To Enable / Disable Buttons In My Gridview

Jul 15, 2010

I'm trying to enable/disable buttons in my gridview according to a value in gridview's field.
But everytime when I try to run my page, it shows me below underlined error and point to my gvTimeSheet.DataBind() in page_load.

"Unable to cast object of type 'System.EventArgs' to type 'System.Web.UI.WebControls.GridViewRowEventArgs'."
I also tried to enable / disable button in HTML but it just against from what I need it to be.

Example, sheet_status = true, I do not need to enable the button.

[Code]....

View 5 Replies

Forms Data Controls :: Enable And Disable Columns In Repeater?

Sep 30, 2010

how can i enable and disable columns in repeater in the code behind

View 1 Replies

Forms Data Controls :: Enable / Disable The Checkbox In Gridview?

Jul 9, 2010

Based on some condition, I need to enable and disable the checkbox in gridview and that would be on page_load event.

View 1 Replies

Forms Data Controls :: Enable And Disable Gridview Selecting?

Dec 20, 2010

I have a gridview that is built based on my objectdatasource.. so at the moment, i have 1 gridview linked to 3 different objectdatasource resultsets.. my question is.. only 1 of the 3 do i want to allow or should i say enable the "GridView1_SelectedIndexChanged" ability. Is that possible, that when i bind the datasource to the gridview for that one, i can enable that?

View 4 Replies

Forms Data Controls :: How To Disable Editing And Deleting Function At Runtime At Gridview

Feb 16, 2010

my users haves different permission: some users can delete, and some users can editing in a gridview how can i allow this at specified users? and hidden the button ho allow the delelte or update record?

View 3 Replies

Forms Data Controls :: How To Enable / Disable TreeView Navigation Control

Feb 9, 2011

In asp.net(C#) i'm using masterpage and childpage.

in masterpage i used TreeView Navigation control to view the Childpage.

.What my doubt is......when i select the navgation control

my TreeView Control should be disable and when i click cancel button in Child page it will enable..

View 4 Replies

Forms Data Controls :: Enable Or Disable The ImageField And Boundfield In Gridview?

Jul 12, 2010

How to enable or disable the ImageField and Boundfield of gridview in the code behind inside page load?

aspx codes:

<asp:ImageField
DataImageUrlField="GreetingType"
DataAlternateTextField="GreetingType"
DataImageUrlFormatString="images/hello.gif"
HeaderText="Greeting"></asp:ImageField>

<asp:BoundField
DataField="Location"
HeaderText="Location"/>

View 2 Replies

Forms Data Controls :: How To Enable Or Disable Textbx On Click Event Of Linkbutton For Particular Row

Jun 10, 2010

i have one gridview in which their is on linkbutton and one textbox

i want to enable or disable textbx on click event of linkbutton for particular row

.aspx code

[Code]....

.cs code

[Code]....

i am able to find textbox in gridview in RowDataBound event but how to perform action on click event on textbox for individual row

View 12 Replies

Forms Data Controls :: Enable And Disable Textbox While Selecting Checkbox In Samegridview?

Oct 22, 2010

when i click on the checkbox in the gridview column1 the textbox column4 should be enabled author wise textbox should be disabled...........

View 1 Replies

Forms Data Controls :: Enable / Disable Controls In Template In Gridview When User Clicks Edit

Mar 4, 2011

I am looking to enable/disable controls (TextBox, DropDownList, etc.) in a GridViews template column based on the users specific access level when the user clicks the edit button. I have tried the following two methods:

[Code]....

View 4 Replies

Forms Data Controls :: Enable Or Disable Textbox In Specific Row In Gridview Depending On Condition

Jul 2, 2010

I want to enable or disable text box in specific row depending on value of field in data source

View 5 Replies

Forms Data Controls :: Disable The Grid Inside The Line Chart?

Jun 5, 2010

I don't want to display the grid inside the line chart. Also I want to show a multiple lines in a single line chart(single chart displaying multiple line charts).

View 1 Replies

Data Controls :: Enable Disable Button When At Least One CheckBox Is Checked In GridView

May 7, 2015

I want a solution for checkbox Check changed.in my gridview when i check on any row it hits check changed event and i have made a button visible if atleast one checkbox is checked.(But when i uncheck i want the button to get hidden if no row is selected).

View 1 Replies

Data Controls :: Conditionally Enable Disable Validators Inside DataList Control

Nov 25, 2013

AM having a datalist with fields repeating based on some conditions say some textbox to enter Name ,DOB,Occupation,cell no,etc..and we have a button "Accompanying Person" .When this clicked i have to show same controls and enter details of accompanying persons like name,cell no etc...

SO same controls i have to show multiple times...but based on member /accompanying person i am hiding id field..but required field validator showing when the id is hidden..since this id is inside datalist and id textbox will be different how to hide this required field validator

View 1 Replies

Data Controls :: Enable Disable TextBox In GridView Based On RadioButton Selection

Apr 26, 2014

i have radio button list and one textbox in gridview if the value is yes text has to enable otherwise i need disable the text box in grid view how do this?

View 1 Replies

Data Controls :: Enable Disable DropDownList Inside GridView Based On CheckBox

Feb 19, 2014

How to enable & disable data value from selected table ?

For Example,  select ID from employeeTlb(for Dropdownlist function) then in asp:checkbox able to tick enable & disable that control  the  data in dropdownlist show/ hide ?

View 1 Replies

Data Controls :: Enable Disable TextBox Controls In GridView Row When CheckBox Checked Unchecked

May 21, 2013

i have a gridview with templatefield  in templatefield there is a checkbox and in there are textboxes. 

i want when i check the checkbox then only that row can active and the textboxes are enabled true when deselect the checkbox then that row should enable false.

View 1 Replies

Data Controls :: Enable Disable TextBox Inside GridView Based On DropDownList Selection

Apr 27, 2014

i have one dropdown list and one gridview in my page by default all the textboxes in gridview enabled if i change the dropdown value textboxes in the gridview has to disable how to implement this?

View 1 Replies

Data Controls :: Enable Disable Edit Command Button In GridView Based On Some Condition

Aug 3, 2013

Suppose the Gridview on the page is for showing the detail records of the Header master record on the same page. How to disable the "Edit" within the Gridview? I would like to disable the "choose" in the Popup of the Gridview and also to disable any buttons of that.

View 1 Replies

Data Controls :: Enable Disable Save Button While Ordering GridView Rows Using JQuery

Feb 25, 2016

I came across the below article, I would like to know how to properly respond to the drop or stop event so that I can show the Save button only once someone changed the order. In other words, I would like the Save button hidden initially, only to make it visible once a drag and drop has occurred.

[URL]....

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved