Browse by Tags

Related Posts

  • Re: HowTo:TemplateField's DropDownList visible only sometimes

    I recommend handling this during the RowDatabound event. To do this you will want to add this to the gridview. onrowdatabound= "GridView1_RowDataBound" Then you will need to create the event handler in the code. protected void GridView1_RowDataBound(Object sender, GridViewRowEventArgs e) {...
    Posted to Data Presentation Controls (Forum) by benrick on 07-14-2007, 12:00 AM
    Filed under: GridView, RowDatabound
  • Changing NavigateURL RowDatabound event

    I have a gridview showing some data—naturally. One of the columns is a template field that contains a Hyperlink. As part of my rowdatabound processing, I would like to add to the querystring for that row's url. Unfortunately, I haven't been able to target the control yet. My latest attempt is...
    Posted to Data Presentation Controls (Forum) by treybean on 08-14-2007, 12:00 AM
    Filed under: GridView, Hyperlink, grid view, RowDatabound
  • Nested Gridview passing parameters from GV to GV

    I am trying to nest two gridviews. But the problem I am having is trying to figure out how to pass a parameter to the ObjectDataSource the the 2nd GV is using. I was trying to use OnRowDataBound on 1st GV, but I am not sure how to get access to the ODS the 2nd GV is using so that I can pass the "id"...
    Posted to Data Presentation Controls (Forum) by JWalker67 on 08-19-2007, 12:00 AM
    Filed under: GridView, ChildTable, GridView asp.net, c#, parameter, GridView FindControl Child Template Field, rowdatabound gridview, Gridview_rowdatabound, GridView getdata at row/column, GridViewiew, ObjectDataSource, RowDataBound gridview conditional values, gridviewrow, RowDatabound, gridview binding, .NET Gridview Problems, asp net 2.0 gridview objectdatasource dynamic runtime, Grid view rows
  • Gridview RowDataBound: get original cell value not formatted string?

    I have gridview with several columns one of which is percent column. This is bound to a column with a SQL float data type. I format the number to be a percent string: So the column in the database has the value of 50.0 and the gridview displays this as "50%". e.Row.Cells[0].Text returns the...
    Posted to Data Presentation Controls (Forum) by tmpuzer on 04-10-2008, 12:00 AM
    Filed under: GridView, RowDatabound
  • RowDataBound: refer to cells by column name rather than index?

    I have code like (this is just an example): protected void SomeGridView_RowDataBound(Object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { e.Row.Cells[8].BackColor = System.Drawing.Color.Red; } } What I don't like about this is that I'm referring to the column...
    Posted to Data Presentation Controls (Forum) by tmpuzer on 04-10-2008, 12:00 AM
    Filed under: GridView, RowDatabound, OnRowDataBound, cells, columns
  • accessing dynamic gridview controls

    I have a grid sitting on the aspx with the autogenerated columns set to true. I set the datasource to a datatable via code. In the rowdatabound, for the row being edited, I hide the autogenerated textboxes and add my own controls to the cells. This all works ok. When the user clicks the update link,...
    Posted to Data Presentation Controls (Forum) by seeriustech on 04-16-2008, 12:00 AM
    Filed under: GridView, GridView Rowcommand Cell-Values, edititemtemplate, GridView asp.net, gridview checkbox, gridview controls dynamically textbox, RowUpdating, RowDataBound gridview conditional values, asp net grid view error, grid view, ASP.net 2.0 GridView, grid view update row, RowEditing, RowDatabound, gridview binding, .NET Gridview Problems, Grid view rows, RowCommand, grid view row, edit a gridview, grid view cell, gridview update, gridview column format, GridView Update Custom Column, gridview rows, grid view alignment bind() web user control pagel load, ASP.NET 2.0/GRIDVIEW, asp.net 2.0 Gridview, Gridview Row Created problem, gridview runtime, gridview checkbox disable, rows in a gridview, asp.NET GridView, Grid view column formatting, grid view row, GridView contols, GridView Columns DataField, ASP .net.NET Grid View Grid View Update, ASP.NET 2008 GridView Columns
  • Re: Nested Griview with subtotals in footer of nested grid

    Hi, Have a look at these two great articles on adding summary data into the GridView footer: http://www.asp.net/learn/data-access/tutorial-15-vb.aspx http://msdn2.microsoft.com/en-us/library/ms972833.aspx Hope that helps, DJH
    Posted to Data Presentation Controls (Forum) by djh on 04-23-2008, 12:00 AM
    Filed under: GridView, Footer, Summary, RowDatabound, grid view
Page 1 of 1 (7 items)