Browse by Tags

Related Posts

  • Custom columns and RowCommand

    I have a GridView with static fields, and I'm also adding custom columns using ITemplateField. The custom columns contain TextBoxes in their ItemTemplates. I have a button in one of the static fields which fires the RowCommand event on the gridview. The problem is, when the page posts back, the textbox...
    Posted to Data Presentation Controls (Forum) by Echilon on 11-19-2008, 12:00 AM
    Filed under: databind, GridView
  • Re: Gridview problem

    The code for binding the gridview you have to put in a blok so that it runs only when the page is not posted back. like If(!Page.IsPostBack) { da = new SqlDataAdapter ( "Select qid,question from ttsl_finance " , con); ds = new DataSet (); da.Fill(ds); gv_financesurvey.DataSource = ds.Tables...
    Posted to Data Presentation Controls (Forum) by aalokitoaami on 07-17-2008, 12:00 AM
    Filed under: databind, IsPostBack, GridView
  • Display only Desired Properties of Object in List<T>

    I am setting the datasource of a GridView to List<T>. I only want to show specific properties of object T. However, while I get the properties that I specify in my GridView BoundFields I also get every other property of object T and the ones I have already listed. To be specific I do not want to...
    Posted to Data Presentation Controls (Forum) by ahsteele on 05-01-2008, 12:00 AM
    Filed under: BoundField, databind, datasource, List<T>, GridView
  • Re: confused which to use

    Hi Leadixon, Your problem is that you need to set the datasource of your gridview to a SqlDataReader or a SqlDataAdatpter , not a SqlCommand. Also, depending on which method you use, make sure you open your database connection before using it. Check out this forum thread - http://forums.asp.net/p/1103137...
    Posted to Data Presentation Controls (Forum) by djh on 01-16-2008, 12:00 AM
    Filed under: sqlcommand, databind, GridView
  • GridView "No Results" questions…

    Looking for 's. I have a GridView on a content page that is bound to a Business Logic Layer which works really well. When no records are found the GridView is not displayed in accordance with the default behavior. This is okay but I would also like to display a user friendly message that indicates...
    Posted to Data Presentation Controls (Forum) by seidensc on 12-13-2007, 12:00 AM
    Filed under: ASP.net 2.0 GridView, Data Presentation Controls, databind, GridView, GridView asp.net
  • The data source does not support server-side data paging.

    I am trying to implement my own paging and sorting for a GridView from Codebehind. The gridview is populated via a DataTable and using DataBind() I have set the property of the datagrid so that the page-size is 3, so as to avoid having to put in too many test records. I have been able to capture the...
    Posted to Data Presentation Controls (Forum) by Orion Blue on 11-16-2007, 12:00 AM
    Filed under: Codebehind, data access, DataTable, gridview, DataBind
  • How to manipulate or change the treeview category?

    Hi I am using below code to populate the treeview from database. Ex : tree view category Vehicle Electronics My question: How to manipulate or change the name in the treeview when display in the web site as below? Vehicle should display as Motors Electronics should display as Multi Media Note : I can...
    Posted to Master Pages, Themes and Navigation Controls (Forum) by SudhaYogesh on 09-24-2007, 12:00 AM
    Filed under: "Tree Structure", .NET Gridview Problems, .vb, asp .net 2.0, ASP.NET, ASP.net ... VB ... Data access, ASP.NET 2.0 DataBinding DataTable, asp.net 2.0 DataBinding formview, ASP.net 2.0 GridView, asp.net 2.0 GridView databound ItemTemplate, asp.net 2.0 gridview hyperlinkfield, css, CssClass, Custom Class, data source, database, databind, Databind(), dataview, gridView sql, GridView Hyperlink Template, gridView identity primary key, GridView imagefield, gridView itemTemplate, GridView ListBox SQL, GridView optimize FilterExpression, Gridview rank reorder sort re-order, gridview replace newline br, Gridview SelectAll Checkbox RowDataBound Events client-side, Hyperlink column, hyperlink column in gridview accordin to condition, if, grid view details view, grid view form view, GridView, GridView asp.net, "gridview" edit select eventhandling, asp.net 2.0, css menu, css print tables, gridview control custom columns hyperlink, gridview rowdeleted
  • Adding Columns dynamically to a datagrid view

    Hi, I am using ASP.NET 2.0 (Visual Studio 2005). I have a requirement to display data in a single row (data coming from multiple rows) for example: Consider a table called "ANALYSIS" which contains data from another table called "COMPLAINT", it has a one to many relation ship with...
    Posted to Data Presentation Controls (Forum) by programmar on 07-23-2007, 12:00 AM
    Filed under: .net, .net 2.0, Asp.Net 2.0, C#, data Acces, Data Access, databind, DataGrid GridView Paging, DataView, Gridview, ASP .NET 2, SQL Server ADO.NET Transactions
  • Re: putting UserId into the site Url (http://www.blahblah.com/members/userid=2Z24O3LOY0

    Hi Rattlerr, First, make sure that the datasource that is populating your GridView/Repeater/DetailsView is returning UserID along with all the other values that are displayed. Then when you set up the NavigateUrl value of your hyperlink you can use Eval to add any field from the datasource onto the end...
    Posted to Data Access and ObjectDataSource Control (Forum) by djh on 05-03-2007, 12:00 AM
    Filed under: object data source, SqlDataSource, Data Access, databind, DetailsView, Gridview
  • Re: Programatically Filling the Insert Template of a FormView

    yes, this is the normal way to do it when referencing controls within a formview (or similar control). The Templates in those controls allow for the same ControlID to be used in the UpdateTempate, InsertTemplate, and DeleteTemplate (since only one template is EVER shown, there are problems with controls...
    Posted to Data Presentation Controls (Forum) by pixelsyndicate on 03-20-2007, 12:00 AM
    Filed under: databind, events, GridView
Page 1 of 3 (22 items) 1 2 3 Next >