Forms Data Controls :: Display Certain Rows In GridView As Read-Only?
Apr 29, 2010
I have the following fields in an Appointment table:
ID(PK), TeacherID, DayID, TimeslotID, ParentID, StudentID, Remarks & Editable(bit, Default value=1)
I am developing an application to allow parents to book appointments to meet the child's teachers.
It is compulsory for parents to meet child's mentors, hence Appointments to meet class mentors are already pre-booked in the Appointments table.
Parents could still book appointments to meet other subject teachers. I have a column in my gridview to show parents the list of booked appointments. Parents are allowed to change the Appointment timeslot for an appointment they booked and are not allowed to change appointment time for pre-booked appointments.
Under the Remarks colum, it is stated that the following appointment is pre-booked by class mentor.
How do I make only those pre-booked rows read only since all the appointments belonging to a parent is under one GridView.
I found an example, but this is to only make the 1st 3 rows read-only and I don't think this is in VB coding. I'm usingASP.NET VB coding.
View 3 Replies
Similar Messages:
Mar 24, 2011
How do I loop the gridview to read or insert one row by one row?I have a database which has a Primary key. Currently,all the rows seems to appear at one time.Even when I use a counter,it did read one row from a textbox(which is for my testing to read one row) but in the database,it still inserts the whole rows from the gridview.I can't click button twice as it will occur an error "Primary Constraint".
View 6 Replies
Dec 2, 2010
I have a gridview with 50 rows. I want to display the rows according to the selection in dropdownlist. Say for ex - In my dropdown i have items 10,20,30,40,50. If i select 20 grid should display only 20 rows.
View 7 Replies
Mar 28, 2011
I want to display same rows values only one time and another same rows to be empty on rowdatabound in gridview.
View 3 Replies
Jan 5, 2010
I have a gridview which is databound to a database. At runtime the gridview is populated with the information from the database. I also have a select hyperlinkfield column which basically has the select hyperlink in each row, when clicked it displays all the details of that entire row(this opens up on a different page).
What im looking for is when that select hyperlink is clicked a progress bar/progress gear with the word loading should appear for couple of seconds and then display all the details of that row selected which will appear on another page.
View 7 Replies
Dec 8, 2010
I have an object datasource which is using Business object as a myconnection
The method i have defined under myconnection is
Publicstatic
DataTable getfn(String dtype,
String did,
String dprefix,
String dname)
{
datable table = new datatable(); then declared stored proceedure and defined parameters and assighned values
In the stored proceedure it has a query like select column1,coloumn2,coloumn3 As Call from table where
I need to take data from Call and display it to the gridview through object datasource .
View 1 Replies
Dec 27, 2010
I want to display the gridview content in breadcrumb style.
View 5 Replies
Aug 18, 2015
I am working on Online shopping website where end user can select multiple items at a time and i need to show them in Cart-item where he has selected his choice items. I want to do this by Cookies in that As user clicks on Add-To-Cart button it gets stored in cookies and in the Show-My-Cart-Item page it shows all the selected items in GridView format.
Anyhow I got following code:
<div>
<asp:DropDownList ID="ddlCookies" runat="server"></asp:DropDownList>
<br />
<asp:Button ID="btnSave" runat="server" Text="Save Cookie" OnClick="btnSave_Click" />
</div> <div >
<asp:Label ID="lblCookies" runat="server"></asp:Label>
[CODE]
But I am unable to get all the cookies values except DropDownList Value. And in gridView I get only last ddl value. Though I have used foreach loop But it does not work. How we get all the records in gridview.
View 1 Replies
May 7, 2015
I want to have auto-generated date from 24-10-2014 to today in gridview column...
View 1 Replies
Jan 29, 2013
Import Data from Excel to Gridview ([URL]) By following the code as mentioned in the post i am able to get excel sheet values and c display them in gridview.
But I want to read Images from Excel sheet and display them in Gridview and also insert them in sql server..
View 1 Replies
May 7, 2015
i need add one key value in web.config and that values read in asp.net page and to bind that value to gridview?
View 1 Replies
May 7, 2015
in my project i have a gridview gv with 5 rows with check boxes(templatefield).. and 1 label.. my problem is when i check 1st row the row value display in label, if i select 1st row & 2nd row checked the two values display in same label with comma seperation, if i uncheck 2nd row, the row value remove from label and only 1st row will be display..if i select all rows all values are display in label with comma seperation.
View 1 Replies
May 23, 2013
In my asp.net+vb web in a gridview i am using this code to change font colour...
If e.Row.DataItem("OutDetails") Is System.DBNull.Value <> True Then
e.Row.ForeColor = Drawing.Color.Green
End If
Can i count and display in a label whose OutDetails are not blank...
View 1 Replies
Sep 20, 2015
For ex:
Grid 1
ID Name
1 aaa
2 bbb
3 ccc
Grid 2
ID Name
1 aaa
3 ccc
I want O/P in Grid 3:
2 bbb
View 1 Replies
Mar 28, 2013
I want read excel file in button event using asp.net with c#..
And the excel file content to be displaying into any control or same excel file to show..
View 1 Replies
Dec 8, 2010
how can we read all rows data in rowcommand event of gridview?
View 2 Replies
Jul 14, 2010
I have a gridview with 3 columns. In second column I want to display some text in 2 rows and then a gridview.
Here is my code:
[Code]....
The problem is my third row is displayed as a row under first column. How do I make it a separate column in my girdview. Not sure what is going wrong.
View 11 Replies
Sep 20, 2015
I have a grid view with two columns A and B. Column A has Checkboxes and Column B has numeric values(int). When user checked checkboxes the checked checkboxes column B have to added and displayed in a Label.
View 1 Replies
Dec 23, 2015
Is there any chance to add more than one grid row in single grid row like this.
<h1> Question</h1>
<table width="100%">
<tr style="background-color:Gray; color:White;">
<td> Name
</td> <td> Product
[Code] .....
View 1 Replies
May 7, 2015
I came across a situation where a user selects no of rows from dropdown , depending upon the user input, automatically that no of editable rows should appear to input data...(maximum 8 rows only)
View 1 Replies
Mar 19, 2010
I need to read data in DataGridView from one page to display using label in Other Page.I think here using QueryString concept. i cant remember the coding for QueryString and How to get Query string in another web page.Please give the sample coding using C# for me.
View 4 Replies
Mar 22, 2011
I tried to use ListView with following code to display 2 columns for name and address:
<asp:ListView ID="ListView1" runat="server">
<LayoutTemplate>
<ol>
<asp:PlaceHolder ID="itemPlaceholder" runat="server" />
</ol>
</LayoutTemplate>
<ItemTemplate>
<li>
<%# Eval("PersonName") %>
<%# Eval("PersonAddress")%>
</li>
</ItemTemplate>
</asp:ListView>
The problem is the address is not aligned depends on the person's name length.
I want to have 2 columns aligned and with horizontal and vertical grid lines. Can I do that?
View 1 Replies
Oct 12, 2010
I have 3 tables in single database with different strctures,3 tables have unique column(partno or Jobno) , on web form search button input control(textbox) and grid view.I am pulling the data based on column jobno from single table on to grid view using following code
VB.Net Code
[Code]....
[Code]....
View 5 Replies
Nov 29, 2010
i want making gridview01 to show produk. when some one select in gridview01, it will display spesifik produk in gridview02. whether it could happen?
View 3 Replies
Mar 4, 2011
I'm binding a gridview from a webservice with 30 columns and 10 rows, I need to print the same in a PORTRAIT, for that i decided to display columns as rows and
rows as columns like below:
EMP1 1 2 3 4
EMP2 1 2 3 4
View 3 Replies