i have a problem with my asp project.i have a gridview that is created dynamically and all rows cells contain hyperlinks that are created dynamically also
all i wanna do is after clicking at any on this hyperlinks i can get the index of the cell where this hyperlink i clicked exist or even the text of the hyperlink i clicked but i don't know how i can do this
The eventhandler for the hyperlink is as follow:
[Code]....
i write in this code selectedrow.cells[0] but this is not what i want.What i need to replace 0 with the index of the cell i clicked
i have a gridview which Pagesize set to 5. There will be some error while i click to page2, i knew it was caused by what but i got no good idea how to solve it.
Me.GridView.DataSource = DT.DefaultView Me.GridView.DataBind() For x As Integer = 0 To DT.Rows.Count - 1 If DT.Rows(x).Item("status") = "Verifying" Then Me.GridView.Rows(x).BackColor = Drawing.Color.Tomato ElseIf DT.Rows(x).Item("status") = "Processed" Then Me.GridView.Rows(x).BackColor = Drawing.Color.CadetBlue End If Next
I have a main page which display the results when clicked on the search button. Those results are in the gridview. one of the column is a hyperlink. when clicked on the hyperlink, it will display the detail page in an iframe(iframe is in the main page below grid view) which is on the same page.
now i need to make changes to the main page, to display directly the detail page in an iframe when there is a single record. or the grid view when there are multiple recoreds so that user can choose which details they want tlp see when a search button is clicked.
So it works fine i can hover on gridview rows. Now I need to add OnClick event. When Row is clicked I need to pass value from SQL server table to textbox. How can I Add something like onrowclickevent? where I can use clicked row arguments?
I have a gridview that I have bound to a sqldatasource. However I have the gridview changing data shown per a drop down list and textbox so I can choose how I am searching.
My code includes changing the select command of the data source and rebinding the gridview.
My issue is that if I implement the edit button and click edit the grid view seems to resort back to the original select command that was entered when I created the datasource.
Is there any way to get the gridview to do what I want it to?
I have a gridview and sqldatasource in a form. My sqldatasource has select,delete and update command. The delete command is working but the update doest not work when I click the update command field.
I created a grid and successfully done update, delete, filled functionality.
But whenever I m clicking on Gridview row, its hieght get increased and color of the row become red while clicking on edit button. But this problem is occuring in Mozilla,IE7 not in IE6. Project is running good in IE6. What could be the solution for this.
I have a button called Next outside the GridView. If I click on Next, I want to highlite the 2nd row and display the details of the 2nd row below in panel. If again I click on Nextm i want to highlite 3rd row and want to display 3rd row results in a panel
Is there any way to stop Gridview to turn back to first row when user click edit link button. Say there are 50 rows in gridview, user scrolled down to 45th row then click edit button. Gridview shifted to editmode but user need to roll down back again to reach the row 45th.
I have created a website that has some gridview controls that call stored procedures in a SQL db and display the results of the procedures. Two of the gridview controls have sorting enabled, and one has pagination enabled.
The site loads for all users who have tried it so far.
However, one user gets a "webpage not found" (HTTP 400 Bad request) error whenever they click on the pagination links or sorting links on the gridview control. It seems like it's not a security issue because the website runs as a user with permission to the database.
I want that when I click to show it should be visible.. that's working... but I want that when I click to this hyper link it should be invisible or not enabled...
or is it possible to show page in new tab or window by using asp button or asplinkbutton?
I have gridview that lists a column of hyperlinked names. A procedure is passed to get the data for the gridview. I am also pulling an ID to use once the name is clicked. Once clicked the ID is used in another procedure to populate a formview. I am having a problem getting the ID to be associated to each hyperlink name in the column and figuring out how I am going to grab the ID from the asp:hyperlinkfield and then assigning it a variable to use elsewhere. Right now I trying to create a datarow with a new attribute.
I have created a Gridview and as part of the GridView I have created an ItemTemplate which has a HyperLink field. I would like the user to possibly select a different hyperlink for each row in the Grid. I have tried using the FileUpload Control and getting the Posted.FileName property and setting this but to no avail.