Forms Data Controls :: Edit All Cells Within A Particular Column => Gridview (vb Code)?
Oct 20, 2010
I'm looking for a technique to edit a whole column (vertical) instead of a row (horizontal).Suppose i have 10 rows en 5 columns (like in Excel), and i want to edit all digits from different students (rows) for test number 3 (column).
I'm working on a project in vb.net framework 2.0 and have a column that has server names. I have the accessdb sql setup to order by the db, what I would like to do is to have it look like the following picture below. I'm pretty stumped on how to do it as the methods I've found online haven't worked so well. Also just a small tid-bit the gridview is bound to a ddl which selects the application and the gridview refreshes with server data. Country would be server name and state would be the environment.
Can someone tell me if there is a technique to make an entire Column within an gridview (for example digits) editable (instaed of a single row) and update this column after changing values by press an Update-button?
A commercial solution is also o.k. with me, but, of course, a method to do it ourselve would be nice.
I'm working on a project in vb.net framework 2.0 and have a column that has server names. I have the accessdb sql setup to order by the db, what I would like to do is to have it look like the following picture below. I'm pretty stumped on how to do it as the methods I've found online haven't worked so well. Also just a small tid-bit the gridview is bound to a ddl which selects the application and the gridview refreshes with server data. It is sorted by server than environment so the columns contain much of the same info for those over and over. Country would be server name and state would be the environment.
I have implemented globalization in my website by using Global Resources. I thought of implementing it not only on controls but in database fields. So for some columns which would be single columns in normal conditions, I considered multiple columns for different culture. For example if there was a [Title] column, I replaced it with [Title-en-US], [Title-en-GB], [Title-es-ES] and etc.I have a web page with a GridView control that displays the content of that table. In a normal case (without globalizing), I would have a TemplateField in the GridView like this:
I have columns for each culture defined in the system so that based on the user's choice, I display that corresponding column content.My question is I have no idea what I should set the Text and SelectedValue properties in HTML code above.Something like this: Text='<%# Bind("myTable.[Title-" + TheSelectedCulture + "]") %>' !!!!!
In the example below I have set the control style to 'controlName' I want to use this class to define what my textbox looks like in edit mode. This works ok, so far so good. The Problem In a button event I add the class "validationError" to this textbox if the data is incorrect. When the grid gets rendered I expect to get 'controlName validationError as the class applied to the textbox. Unfortunately, it seems that the declarative statement overrides this and simply ends up as 'controlName' how I can intercept the application of the declarative class so that I get what I desire here?
I need to check for two differect text to make the Edit button inactive. For example, I need to make the button inactive when the ActionTypeName field has value either Accepted date or Received date. I can do one check with Accepted date but not both.
I have several places where I have a gridview and dataview set, and when I hit an edit button on the gridview it opens up the dataview. When I hit a cancel button fom the dataview I have this code that returns mew to the gridview:
I am facing a situation where I have to disable GridView field (in EDIT mode ) conditionally.
Here is the situation,GridView has 5 fields "Product Name" "Small" " Medium" "Large" "XLarge"
Here is the problem, application has section where user activate/deactivate sizes (SMALL,MEDIUM,LARGE,XLARGE). Suppose User activates "SMALL" and "LARGE". Now When the GridView is populted normally, I don't have to disable any fields. But when the user clicks "EDIT" on GridView row, I want "MEDIUM" and "XLARGE" fields to appear as disable.
Here is what I know
1) I will have active sizes in SESSION ... in the above case (SMALL and LARGE)
2 I know I have to catch GridView_RowDataBound and then I have to check for the edit mode for the row.
In my asp.net application i'm using gridview to which i'm binding data dynamically by writing a select query in code behined file (all column's are autogenerated) now i want to change gridview cell to edit mode from label to textbox or dropdown on clicking of gridview's cell.How can i achive this in code behined file.
have grid view with column ..price ...Sno. Product price ($)1 Pencil 12 Rubber 33 sharpner 2I want to calulate the price column .... means //// i want to calculate the cells in Price column of GridView .....the reult of price will be shown as 1+3+2 = 6
i have a gridview in my website and i want to merge two cell of that in same column but in different row , for example i have a data about tours in an agency , now i define a tour that has two hotel with difference grade , i want tow show my grid view in this manner :