Questions tagged [gridviewrow]

44 questions
6
votes
1 answer

Click GridView Find Selected Row

I'm trying to take a GridView and get back the data from the row that was clicked. I've tried the code below and when I click the row I get back the selected index but when I look at the actual rows in the GridView they show empty. Not sure what I…
John Wesley Gordon
  • 910
  • 2
  • 17
  • 39
4
votes
0 answers

GridView with incomplete row item does not scroll

I have a problem with my GridView when it receives incomplete row item number, it doesn't scroll anymore. My items are dynamic which are given by the server, I have 3 columns and if the number of GridView items are more than enough to enable…
Compaq LE2202x
  • 2,030
  • 9
  • 45
  • 62
3
votes
2 answers

GridView: Get datakey of the row on button click

How can I get a value of the DataKeyName of a GridView Row when I have a button inside a row that have an OnClick event. In my OnClick event of my button I want to get a the DataKeyName of the row where the button resides. Is this…
rob waminal
  • 18,117
  • 17
  • 50
  • 64
3
votes
2 answers

GridViewRow constructor parameters, What are they exactly?

I have read the definition from msdn (see below) which did not help me. I am dynamically adding gridviewrows to my gridview and don't know what are the parameters for. public GridViewRow( int rowIndex, int dataItemIndex, …
HOY
  • 1,067
  • 10
  • 42
  • 85
2
votes
0 answers

gridview row border

I have a gridview which is data bounded. i want that every time data is bound the the border color and width of some rows will change. i wrote this function: protected void GridView1_DataBound(object sender, EventArgs e) { int column = 3; …
Aviadjo
  • 635
  • 5
  • 17
  • 36
2
votes
1 answer

ASP.NET GridView: Confirm button click postback with jQueryUI dialog

I'm hoping someone can help me figure this out. I've looked all around have yet to find an example that will help me. I have a feeling that I'm super close on this... I have an asp:gridview with a linkbutton at the end of each row. I need to do a…
2
votes
1 answer

Save each row in gridview that was built manually

I'm trying to save multiple rows from a gridview into sql database. The gridview is manually built in code, thus it is not databind... The reason for this is because this is a grid for parts that has to be added to a quote... Okey so I done the…
Kerieks
  • 1,042
  • 7
  • 25
  • 53
1
vote
1 answer

How to check if checkbox is checked in gridviewrow

I need help with this code where I check every row in GridView if the CheckBox is checked or not. But there is still false. Can you help me, please?
1
vote
1 answer

How to create responsive GridView to cover whole screen?

I have the following layout in an Activity of my Android app: There are 3 sections and 10 buttons, with icon and text. As you can see on large screen (most of phones nowadays) I get a lot of blank space at the bottom of the screen. Do you know how…
smartmouse
  • 13,912
  • 34
  • 100
  • 166
1
vote
1 answer

Uncheck Checkboxes in GridView with Paging

I have an ASP .NET GridView with Paging. One column in it has a CheckBox. In a certain scenario, I want to uncheck the checkboxes that are checked. foreach (GridViewRow dr in gvMyGridView.Rows) { if (dr.RowType == DataControlRowType.DataRow) …
Ranhiru Jude Cooray
  • 19,542
  • 20
  • 83
  • 128
1
vote
2 answers

GridViewRow - OnClick

I want to redirect to another Page When I'm clicking a GridViewRow I have tried this (with no success) : [RowName].Attributes["onclick"] = "HttpContext.Current.Response.Redirect('[PageName].aspx')"; How to do that? Thanks!
Sportalcraft
  • 211
  • 1
  • 10
1
vote
2 answers

Updating database table from DataGridView in C#

I am trying to update my database rows from the DataGridView using this code: private void button2_Click(object sender, EventArgs e) { foreach (GridViewRow dr in dataGridView1.Rows) { string constring = "Data Source = localhost;…
Tarek-Dev
  • 170
  • 1
  • 3
  • 19
1
vote
2 answers

How to find TextBox in GridViewRow edit mode

I have tried several so called answers for this and it has me lost. I am simply trying to default a TextBox Text value with today's date and time, but I cannot find the control when I click LinkButton with CommandName "Edit". Here is my gridview... …
Fandango68
  • 4,461
  • 4
  • 39
  • 74
1
vote
2 answers

Trouble grabbing Row Number from GridView

I have the following GridView:
JimmyK
  • 4,801
  • 8
  • 35
  • 47
1
vote
1 answer

Asp.net Column placement to next row in gridview

Is it possible to move a column to the next row in a gridview somehow? Like this: This really is the best way to explain what i'm trying to do. here's some code for you nice fellows. ASP.NET
Jeroen Vorsselman
  • 803
  • 1
  • 9
  • 19
1
2 3