Web Forms :: GridView Edit Update Only Specific Columns And Not All

May 26, 2012

i have record for 10 student... i want to enter marks and give status pass or fail..i m using grid view to show data.....like

student name       class        marks      Pass/fail(should be drop down)      marks

above are my coloum....and i want to edit only pass/fail   and marks entry......how can do it in grid view.

View 1 Replies


Similar Messages:

Web Forms :: GridView - Edit Only Specific Columns And Not All

Jun 16, 2012

I use these code  for my grid view [URL] ....
 
Here have  Customerid  ,Name  ,Company  column when we click on edit that edit Name and Company Column .

I want when user click on Edit they can edit just Name column I want they can't edit Company column how i can do it?

View 1 Replies

Web Forms :: GridView To Update (edit) Columns And View Table Without Edit Link?

Jan 25, 2011

I have a user requirement to hav the ability to directly edit the gridview without having to click the edit link. I was thinking of showing dropdown lists for each column-to-row so that the user can select the values for each record. Then the table will be updated accordingly (no update link).

Is this possible or do I still need the edit template and specify the item template with the dropdown list?

View 1 Replies

Data Controls :: GridView BoundField Column Readonly - Disable Specific Columns In Edit Mode Of GridView

May 7, 2015

How to disable editing the data in the cells of datagridview in c#?

View 1 Replies

Data Controls :: Bulk Edit Update Multiple Gridview Columns

Jul 26, 2012

I have my gridview and its code is as follows

<asp:GridView ID="noticeDetails" runat="server" EmptyDataText="Currently there are no notifications." BorderColor="White"
BorderWidth="1px" AutoGenerateColumns="false" PageSize="10" Width="100%" CellPadding="10">
<Columns>
<asp:BoundField DataField="CampaignIDRange" HeaderText="CampaignIDRange"
SortExpression="CampaignIDRange" InsertVisible="False" ReadOnly="True" />

[Code] ....

I want to add a Edit button at the end of the grid view upon clicking on that button i can edit the grid columns.

Any method to resolve this query.

View 1 Replies

Forms Data Controls :: Show FormView In Edit Mode With Specific Table Columns Depending On Their Genre?

Sep 8, 2010

I have a table in my database called "Profiles". This holds data on Female and Male personal characteristics.On my aspx, I have a formview in edit mode which is binded to an object data source with a GetDataByUserId Select methodwhich retrieves data from the "Profiles" Table via a DAL.The "Profiles" table has some columns which relates to females only and some just males and some are generic to both.See example below

UserId - / of Type GUID
GenreId / of Type BOOL.
Hip Size (For females)
Dress Size ( For Females)
ChestSize (For Men )
TrouserSize (For Men)
Weight ( For both )

When the User logs in , they go to an update Page which has the Formview in Edit Item Mode and contains drop down Lists whichare binded to the Users Selected Value. The DDL are in turn bound to their related table such as HIP, Dress, Chest, Trouser etc.bjectiveIf a female user logs in I just want to show them the (Hip Size) DDL and DressSizeDDL in the Edit item template of the formview and not the ChestSize DDL or TrouserSize DDL.At present the GetProfileByUserId returns all colums from the tableMy question is how do I do this and just show DDL which are relevant to the Female or Male Only. In some cases the usermay not have selected an item in the previous form so they could also be NULL.Am i on the right path by writing a Select Query that checks to see if the User is Male or Female by checking the Genre column in Profiles first.Do I also need 2 panels, 1 to hide Female DDLS and the other to Hide MaleDDLs subject to logged in user genre.

View 8 Replies

Web Forms :: Export Only Specific Columns Of GridView To Excel

May 27, 2012

I know how to export GridView to excel but it exports all Columns

I want to export only some columns and not all of ASP.Net GridView to excel.

View 1 Replies

Forms Data Controls :: Allow To Edit Specific Row In Gridview?

Jun 30, 2010

I want allow edit the only specific rows in gridview.

How can I achieve this.

View 4 Replies

Forms Data Controls :: How To Freeze Specific Columns In GridView

Aug 31, 2010

My question is how to freeze specifi columns of Gridview control ? Freeze means...for example say if we are freezing the first column of grid then on scrolling a horizontal scroll bar of the grid will scroll all columns other than the first column. That means the first column will be visible always without any movement. But the first column should move if we use the vertical scroll bar.

View 1 Replies

Forms Data Controls :: Gridview Update Mode Is Not Ending After Clicking On Edit Then Update?

Mar 23, 2011


[Code]....

View 8 Replies

Forms Data Controls :: Hiding Gridview Columns On Edit?

Aug 10, 2010

My gridiview is mostly templated fields.

I have searched far and wide and discovered that if you hide gridview colums in the Gridview's databound event, as per the code below,then the objectdatasource binds multiple times according to the number of columns you are hiding. This is definitely the case.

[Code]....

[Code]....

View 8 Replies

Forms Data Controls :: Manage The Gridview Columns Especially At Time Of Edit The Records?

Apr 16, 2010

i use the grid view so edit & Delete the records. using

<asp:CommandField ShowEditButton="True" />
<asp:CommandField ShowDeleteButton="True" />

But due to more fields the gridview is out of the Master page.

So how can I manage the gridview columns especially at time of edit the records.

View 5 Replies

Data Controls :: Print Only Specific Columns Of GridView

May 7, 2015

I want to hide some of the columns of the gridview before printing.

For example gridview contains customerid,city and postal code.

Now i want to show city and postal code during printing.

So how can i achieve this?

View 1 Replies

C# - Retrive A Control In A Specific ROW In Edit Mode In A GridView?

Feb 25, 2011

I use asp.net 4 + c#,I have a GridView with many rows.When a User click the EDIT button in GridView I need to retrieve a Control in that specific row (now in edit mode).This Logic should work on GridEvent_RowUpdatingAt the moment my code (wrong) look inside every Row, so the Control founded is not unique and I receive an error.

// Event handler
protected void uxManageSponsoredContentsDisplayer_RowUpdating(object sender, GridViewUpdateEventArgs e)
// My code (Wrong!!!!):
foreach (GridViewRow row in uxManageSponsoredContentsDisplayer.Rows)
{
TextBox uxStartDate = (TextBox)row.FindControl("uxEffectiveStartDateInput");
}

Hope my question is clear. Solution:

TextBox uxStartDate = (TextBox)uxManageSponsoredContentsDisplayer.Rows[e.RowIndex].FindControl("uxEffectiveStartDateInput");

View 1 Replies

Forms Data Controls :: Binding DataSet And GridView, Apply Bulk Rows Edit And Update On GridView

Dec 10, 2010

I have a set of dataset with different column retrieved from DB. I need to present the datasets in one GridView (or other ListView etc...) without specifying the column_header. It should present automaticly since the GridView is bind to the DataSet.

In additional, I want this GridView to handle multiple rows edit and update the dataset, idealy, show data in textboxs in initially.How could I set the GridView to edit_model without hardcode column_header and textboxs in 'itemtemplate' or filed.

How could I achieve the bulk edit and update, so that I can assign 'mydataview1.table' to the dataset.

View 1 Replies

Forms Data Controls :: Update Gridview At Specific Intervals Without Ajax?

Jan 9, 2011

is it possible to refresh my gridview at specific intervals without using using Ajax or the update panel..our system is to old to use Ajax!

View 3 Replies

Data Controls :: Show Only Specific Columns And Hide Others When Sending GridView In Email Body

Jun 17, 2012

i have done sending gridview data  as excel  to mail, it is working fine

then  i had 5 columns in gridview but i want to send 4 column instead of 5 column.

protected void Button1_Click(object sender, EventArgs e)
{
fn_AttachGrid(); // here calling function to send mail gridview data as excel format
}

[Code]....

View 1 Replies

Data Controls :: GridView Columns Values Must Remain Fix During Edit

Sep 4, 2012

I didnt use bound field here.as it is simple grid view with auto generate columns. I want to make some columns Editable while some should not be editable

<asp:GridView ID="noticeDetails" runat="server" AutoGenerateEditButton="True"
onrowediting="noticeDetails_RowEditing1"
onrowupdated="noticeDetails_RowUpdated1"
onrowupdating="noticeDetails_RowUpdating1"
BorderWidth="1px" Width="100%" CellPadding="10">
</asp:GridView>

View 1 Replies

Data Controls :: Edit Option In GridView Or ListView For 450 Columns

Aug 2, 2013

I have a table which has like 450 fields, i want to add edit option to my GridView which allow user to edit the data for that row.i don't wanna write ItemTemplate field for 450 fields, is there a way to get it done automatic query using ListView or GridView whatever is good for it.

View 1 Replies

Web Forms :: Using Calendar Control In GridView During Edit And Update

Oct 3, 2012

i have a grid to display, insert and Edit data on  a web form.i want calender control to be displayed in insert and edit mode so that i can select   a date.

View 1 Replies

Forms Data Controls :: How To Edit And Update Record In Gridview

Sep 20, 2010

How can I Edit and update record in Gridview using viserd..

in asp.net c#

View 4 Replies

Forms Data Controls :: GridView Edit DropDown - Cannot Update Sql

Sep 20, 2010

I have a gridview that has an edit button. I want to have dropdownlists in the edit template, which I have. I cannot get the dropdowns into the update sql. Is that done with code behind or is there another way to do it?

[Code]....

View 10 Replies

Forms Data Controls :: GridView Edit Update Function?

Oct 11, 2010

I have a gridview and am using the Edit - Update function to update one field in my gridview. I have the textbox appearing as I want it and am able to update the data for that cell.

The problem I have is refreshing the gridview after the update. The Update and cancel are still shown instead of the gridview refreshing back to the Edit statement after the update.

View 4 Replies

Forms Data Controls :: GridView Edit-update Doesn't Work

Nov 23, 2010

Can't tell what is wrong here . It worked fine and I didn't did anything special in code-behind

I don't see any error just the same data in gridview

[Code]....

View 7 Replies

Forms Data Controls :: Edit Or Update A GridView That Enclosed Within A Repeater?

Mar 9, 2011

Using the pubs database, my GridView groups titles by publisher. Everything displays correctly; I just can't edit anything. I click on "Edit" an the Textboxes don't appear. What am I doing wrong? Should my FillGrid() function be returning all the records or just the ones from that particular publisher group? Here is my .aspx code:

[Code]....

...and here is my code behind:

[Code]....

View 2 Replies







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