Questions tagged [gridviewrow]

44 questions
0
votes
1 answer

Setting value of checkbox programmatically in VB.NET

I can check the value of a checkbox in a GridViewRow: isChecked = CType(row.FindControl("chkSelect"), CheckBox).Checked But what's baking my noodle is trying to figure out how to programmatically set a checkbox to checked. The scenario is I have…
Bill
  • 3
  • 1
  • 3
0
votes
3 answers

placing checkbox in gridview in c#

i need to add checkbox column to my gridview in c#. i have my code: foreach (GridViewRow objRow in GrdDynamicControls.Rows) { if (dttableDetails.Columns.Contains(strColumnName)) …
Innova
  • 4,831
  • 21
  • 76
  • 107
0
votes
1 answer

Cannot cause $(this).find("a").click(); to fire using JQuery

I have a small question which should be very easy for the jquery experts out there. I am trying to follow http://aspdotnetcodebook.blogspot.com/2010/01/page-languagec-autoeventwireuptrue.html to be able to perform an action on gridview row double…
Ali
  • 73
  • 1
  • 2
  • 8
0
votes
1 answer

Update gridview from code behind in asp.net

I have gridview in my asp.net 3.5 application [C#]. Which looks like this:
Zerotoinfinity
  • 6,290
  • 32
  • 130
  • 206
0
votes
1 answer

Extract data from the last row of gridview in ASP.net

I know how to to do it and put the data on textbox when I select a row from a gridview, What I want to achieve now is when I open a modal pop up form containing a gridview, it will automatically select or extract the date column from the last row of…
rickyProgrammer
  • 1,177
  • 4
  • 27
  • 63
0
votes
2 answers

adding button to each row in gridview that has a drop down menu

I have a Gridview that I want to add a "Actions" button to each row that is added that upon click will allow me to edit or delete a row. In my picture it looks like a drop down list. I prefer a button however a dropdownlist will work as a last…
0
votes
1 answer

GridViewRow only selecting last row

I'm trying to add a GridView and I've added a button to the last column. It wasn't doing anything and I've made a new label to see if its returning any data but it only seems to be working on the last row. Do you see anything wrong with my code?…
user3437235
  • 92
  • 3
  • 9
0
votes
2 answers

Using Linkbutton in Gridview

I have a code like this GridViewRowCollection row1 = GridView2.Rows; foreach (GridViewRow row in GridView2.Rows) { LinkButton objlink = (LinkButton)row.FindControl("LinkButton2"); objlink.ForeColor =…
0
votes
2 answers

How to change link button text in gridview at runtime in asp.net

In my gridview some rows are already presents. Gridview have one column containing link button. But when I add new row in gridview I want to change the text of that link button for that new row only. Thanks in advance.
nerdyator
  • 19
  • 2
  • 7
0
votes
1 answer

How to find total number of records/rows in gridview?

I want to find total number of rows in the gridview. here is my code, page size= 10 Private Sub GridView_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles CustomGridView1.RowDataBound Dim…
software
  • 728
  • 6
  • 18
  • 39
0
votes
1 answer

Gridview Bulk Update

From this link: asp.net grid view bulk updating all cells I did the following: protected void ButtonUpdate_Click(object sender, EventArgs e) { // foreach (GridViewRow row in GridView1.Rows) // { int RowIndex = 0; …
user1270384
  • 711
  • 7
  • 24
  • 53
0
votes
2 answers

How to highlight invalid data on gridview if validation against a DataTable is failed VB.Net?

I tried my best to shrink down the program to the following code. In this example, I have UK and USA as valid countries. If someone lives outside those countries, I wanna show an error message and highlight them on the gridview. For example, John…
Laurence
  • 7,633
  • 21
  • 78
  • 129
-3
votes
2 answers

No overload for 'Button1_Click' matches delegate 'System.EventHandler'?

I want to display values from db to grid view with image file. While using given below code it shows an error. Help me to find a proper solution. Code: protected void Button1_Click(object sender, GridViewRowEventArgs e1) { …
Vipin
  • 261
  • 6
  • 20
  • 44
-22
votes
3 answers

Getting Row from Gridview in Dev Express?

How do I get a Row from a Gridview control in DevExpress?
fc_devexpress
1 2
3