Browse by Tags

Related Posts

  • Validate Bound Field in GridView

    Is there any way to validate a Bound Field in a GridView? Yes, I know it can be done with a TemplateField, but that's not possible in my situation. I will not know how many columns are returned from the SqlDataSource, so I cannot use a Template Field. I'm trying to add the validator programattically...
    Posted to Data Presentation Controls (Forum) by csi95 on 01-17-2009, 12:00 AM
    Filed under: validate, BoundField, 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
  • e.keys, e.oldvalues and e.newvalues using a custom datasource?

    Hi, I am using a gridview with several boundfields and anothers with itemtemplates and edititemtemplates using labels and textboxes... Since i am using a custom datasource i cant seem to use the rowUpdating e.oldvalues etc... So i started using something like this: Grid.Columns(i).ExtractValuesFromCell...
    Posted to Data Presentation Controls (Forum) by Luis Simoes on 10-01-2007, 12:00 AM
    Filed under: newvalues, oldvalues, TemplateColumn, BoundField, extractvaluesfromcell, gridview
  • programmatically set field values

    Trying to allow user to change the ranking of records with imagebuttons in the template field of a gridview. Have the code done but the new value does not display in the gridview. the mode is not edit and I assume the columnsa re represednted in label controls. When I debug I see that cell text value...
    Posted to Data Presentation Controls (Forum) by jammoral on 05-22-2007, 12:00 AM
    Filed under: BoundField, GridView editing, gridView input, gridView itemTemplate, Gridview rowcommand event, GridView
  • FormView Insert Template and "Unbound" value as a parameter...

    OK, I'm going to do my best to explain this mess...err...situation. I'm working in the .NET 2.0 Wizard control. My first step inserts a new record and returns the newly inserted record's id from the database. This value is populated into a label control's .Text property. Now, I've presented my user with...
    Posted to Data Presentation Controls (Forum) by ric_castagna on 03-26-2007, 12:00 AM
    Filed under: Bind, Binding, BoundField, DataBinding GridView Insert, fomview, Formview Insert, GridView
  • GridView BoundField

    Hi all, I have ObjectDataSource (odsOrder) who's source is a Strongly Typed object (Order). One of Order's properties is also a Strongly Typed object (Customer) . This may sound backwards, but it isn't... please bare with me :) The Customer object has 2 properties of type string: Firstname and Lastname...
    Posted to Data Presentation Controls (Forum) by mutt_999 on 03-20-2007, 12:00 AM
    Filed under: BoundField, FormView, gridview custom column data items, GridView
  • GridView Row colour to change on a column status C#

    Hi, I have a gridview in asp.net,getting just three columns of text. I want to check in each row if the value "alarm" is in one of the columns, and if so colour the whole row yellow. I sort of got this to work when comparing an integer but cannot get it to work when comparing text. What would be your...
    Posted to Data Presentation Controls (Forum) by camper on 01-30-2007, 12:00 AM
    Filed under: Bind, BoundColumn, BoundField, Controls, DataBinding GridView Insert, Datagrid and Checkbox, GridView Hidden Column, GridView "custom column names", gridview "custom paging" refresh insert, Gridview columns missing, GridView Command Update Missing, GridView Css tablecell, gridview custom column data items, gridview edititem template validator date, GridView FilterExpression Date Values, GridView ItemCommand Twice, GridView List ObjectBinding Collection, GridViewiew CommandField TemplateField Row, gridView datalist repeater, GridView, GridView asp.net, gridview autogeneratecolumns bug, gridview checkbox, GridView Checkbox CheckedChanged, asp.net 2.0, GridView editing, gridView datakeys
  • A field or property with the name X was not found on the selected data source

    Hi I know there have been lots of posts on this error, but none of the solutions seem to solve my version of it. I'm trying to fill a GridView with data from an ODBC connection. I don't want to use AutoGenerateColumns, because I want to format the columns using <asp:Boundfield> tags. If I do this...
    Posted to Web Forms (Forum) by Mundo on 01-26-2007, 12:00 AM
    Filed under: ADO.NET, ASP.NET 2.0 webform, BoundField, gridview, asp.NET GridView
  • Show image dependent on boolean value in SQL source

    Hi All. Newbie using Visual Web Developer Express 2005 as a hobbyist doing a little project for my Wife. Require a little help please... I have a gridview populating from an SQL database source. One column is a boolean. I can successfully display all the data from the source in the gridview with the...
    Posted to Data Presentation Controls (Forum) by JADsHome on 01-21-2007, 12:00 AM
    Filed under: sqldatasource, VB, BoundField, checkbox, Eval, GridView Rowcommand Cell-Values, If Statement, GridView, GridView asp.net, gridview checkbox
  • Unable to edit a gridview bound to Profile object

    Hi, I have created an object in Profile of type MyNamespace. UserPrefObject: < add name= "Prefs" type= "MyNamespace.UserPrefObject" serializeAs= "Binary" /> I am working on a page which will load the data entered into this object when the user was first added, into a Gridview, and allow the user...
    Posted to Data Presentation Controls (Forum) by kreid on 12-22-2006, 12:00 AM
    Filed under: BoundField, databinding, GridView editing, GridView
Page 1 of 2 (16 items) 1 2 Next >