Questions tagged [gridviewrow]

44 questions
1
vote
1 answer

InvalidCastExceptions when setting GridViewRow attributes

I'm working on a context menu for items in my GridView, but there's one major snag. I can't seem to figure out how to send the PK value for the row that is right-clicked on to the JQuery that interacts with my HTTP Handler to update the…
Ortund
  • 8,095
  • 18
  • 71
  • 139
1
vote
2 answers

GridViewRow FindControl query C#

I am building a simple C# web app which will act like an online database for resources. In my table, I have a category and author column. When I click a category value in the table, the table will refresh showing only the categories that was…
Kevin P
  • 311
  • 2
  • 13
1
vote
1 answer

Find first and last Row Index No for a gridview in each paging?

Hi i have a gridview contains hundred of records, it is having paging, every page have size 10. now i want to find the first & last row index numbers of the gridview in each paging event? any suggestions?
software
  • 728
  • 6
  • 18
  • 39
1
vote
1 answer

How to get value of editable field in Gridview

I have a gridview with an ObjectDataSource which I want to update with one click. Therefore the gridview loads with editable and fixed fields. I loop through the gridview to update all in once. I am able to load the values from the fixed fields…
bart_dp
  • 45
  • 2
  • 11
0
votes
1 answer

C# GridViewRow FindControl get/pass values

I have an asp:linkbutton. When it's pressed I want to get a list of DetailID's based on which of the checkboxes in my GridView are checked. I have a lblTesting to see the list of DetailID's that I'm generating. My goal is to get a list of…
0
votes
1 answer

How to add custom tablecell collection to gridview row

I've created a custom GridView server control. The next thing I'd like to do is to use my own custom TableCell Collection with that GridView so I can set some custom properties and etc. Countless hours of Google searches have made me dizzy and…
deadbug
  • 4,629
  • 4
  • 25
  • 23
0
votes
2 answers

Add gridviewRow to gridview on email control

I am trying to control whether or not an email address is already in a list, and if so i'd like to add a row from a gridview to the new gridview that will be send to that email account. I have some code to get the rows and send them to the email…
Dieter
  • 401
  • 1
  • 9
  • 31
0
votes
1 answer

Apply EventTrigger to GridView Row in WPF?

I want to apply MouseEnter and MouseLeave EventTriggers to the entire row of a WPF GridView. I have used the code below to add the event triggers to a single column and these fire when the mouse moves over the text in that column.
Caustix
  • 569
  • 8
  • 26
0
votes
0 answers

window.opener.ParmArray == null on IE11 gridview RowDataBound asp.net vb.net

Mainpage Gridview i have gridview on edit item image button click popup needs to be opened and based on popup selection home page edited row needs to be updated from selection.its working fine on Chrome but not on IE here is the Gridview code…
kumarjcet
  • 419
  • 1
  • 5
  • 8
0
votes
1 answer

How to get value of a specific column in OnRowDataBound function?

I have a dropdown and a gridview. Depending on the value selected in the dropdown, I want to update the NaviagetURL for the hyperlink specified in 1st column of the gridview. So I am using onRowDataBound function to update the hyperlink's…
0
votes
2 answers

How can I retrieve all GridViewRows from a GridView control with paging enabled?

I am working on Add To Cart Functionality, and I have added a GridView control with paging enabled. In the GridView, I show the quantity in a text box and handle the OnTextChanged event for that textbox. Now the problem, is how can I keep the…
Chirayu
  • 1
  • 2
0
votes
1 answer

Can I use a GridViewRowPresenter to merge cells?

I have a ListView and GridView within it. Upon clicking a button on any row I set an error state based on which I need to change that particular row's cell structure. For eg. I need it to go from a 5 column cell to a 3 column one. Can I accomplish…
Krishter
  • 489
  • 8
  • 24
0
votes
2 answers

With the ASP.NET GridView control, how can I disable controls or individual cells in a GridViewRow after PageIndexChanged?

I have a data bound GridView control, in which I am able to disable individual cells based on the User role. This only works on the first page. private void LimitAccessToGridFields() { if (User.IsInRole("Processing")) return; …
Blanthor
  • 2,568
  • 8
  • 48
  • 66
0
votes
1 answer

Update textbox for each row in gridview on One Button Click

In my gridview I have given a textbox for each row which has a corresponding button which fetches the value from the textbox and updates that rows value in the database. But I want to add one button on top in the Header Template which will fetch the…
user2211486
  • 237
  • 1
  • 6
  • 18
0
votes
1 answer

Passing gridview row data to textboxes on selection of gridview row

I can't seem to make data from my gridview pass to textboxes outside of my gridview on row selection. The event seems to be firing, but the textboxes are always filled with & nbsp;. I can't figure out why this is happening since none of the cells…
Bud Fox
  • 37
  • 1
  • 7