Search Result

Collapse
38 results in 0.0045 seconds.
Keywords
Members
Tags
gridview
  •  

  • How can i bind Profile.property to datalist label?

    i have the property UserName and FullName. i am already returning The username like

    Code:
     <asp:Label ID="DeLabel" runat="server" Text='<%# Eval("De") %>' />
    But what i want is something like this

    Code:
     <asp:Label ID="DeLabel" runat="server" Text='<%# Eval(Profile.GetProfile("De").GetPropertyValue("FullName").ToString()) %>'
    ...
    See more | Go to post

  • Specified argument was out of the range of valid values.Parameter name: value

    When I am deleting a row from grid view I am getting following error. "Specified argument was out of the range of valid values.Paramete r name: value ". The following is the Stack Trace:

    [ArgumentOutOfRa ngeException: Specified argument was out of the range of valid values. Parameter name: value] System.Web.UI.W ebControls.Grid View.set_Select edIndex(Int32 value) +1353411 System.Web.UI.W ebControls.Grid View.HandleDele teCallback(Int3 2...
    See more | Go to post

  • dha lak
    started a topic Pivot table in asp.net gridview control

    Pivot table in asp.net gridview control

    Hi,


    I have 4 tables in my database. i want to create pivot table using them in a gridview.

    1) Category
    CategoryID CategoryName
    1 Milk
    2 Nuts
    3 Fruits
    4 Vegetables
    5 Cakes


    2) SubCategory
    SubCategoryID CategoryID SubCategoryName
    1 1 Soya
    2 2 Almonds
    3 2 Cashew
    4 3 Apple
    5 3 Orange
    6 3 Grapes
    ...
    See more | Go to post

  • aleact
    started a topic stop gridview posting back on clicking anywhere

    stop gridview posting back on clicking anywhere

    I have a gridview bound to some sql data and I have some textboxes that let me search this data. The problem is that when the client enters a search term, they can click anywhere on the page and the search happens. But they only want it to happen when the "search" button is pressed. (I am surprised this is a 'problem' but what can I do?)

    Can I somehow stop the postback from happening until I call it? I tried an Update...
    See more | Go to post
    Last edited by Niheel; Oct 10 '11, 08:06 PM. Reason: part of question, merged

  • Reference a Textbox in a dynamically created header row in a gridview

    Hi

    I have a gridview that onRowCreated adds a second header row above the first one. In the created one there is a textbox control. My question is how would I access that textbox in the code behind?


    The code for the created row is below:

    Code:
     
                If e.Row.RowType = DataControlRowType.Header Then
                    Dim gvHeaderGrid As GridView = sender
    ...
    See more | Go to post

  • nathj
    started a topic How can I use aGridView and maintain good MVC?

    How can I use aGridView and maintain good MVC?

    So I've got to learn ASP.Net and C# for work. The organisation has bought in some training and some books. I'm using the books and the web ahead of the training next month.

    Presently I have worked through some tutorials online and in the books. I've got a basic handle on C# now and am working on some mock projects for ASP.Net. A good friend of mine , pointed me in the direction of the GridView as a very useful tool. I must agree this...
    See more | Go to post

  • onecubed
    started a topic Gridview PagerStyle not working

    Gridview PagerStyle not working

    ASP.NET Gridview has a PagerStype property to set the page number style. It does not work and it wont get rendered to the generated html.
    I can see this problem is being raised way back from 2005. It's interesting still they haven't provided a solution. Anybody have a hack to set the gridview pager style?
    See more | Go to post

  • waqar100
    started a topic Any other way

    Any other way

    Code:
    .cs
    protected void grdVPlayer_RowDataBound(object sender, GridViewRowEventArgs e)
            {
                try
                {   if (e.Row.RowType == DataControlRowType.DataRow)
                    {
                        CheckBox objCheck = new CheckBox();
                 
                        objCheck = (CheckBox)e.Row.FindControl("chkPlayer");
                        objCheck.ID = "chk" +
    ...
    See more | Go to post
    Last edited by Meetee; Apr 28 '11, 08:33 AM. Reason: Code tags added

  • Richard Starr
    started a topic Need some help with Grid view

    Need some help with Grid view

    I'm trying to do the following.
    I want to use a gridview to load a set of associated
    records dynamically based upon the input of the user.
    I want the gridview to have a checkbox to the left of
    the records and allow the user to use this to select
    records to remove. The gridview will have pages and will
    be sortable using the columns.

    I had this working using a delete button, but when I went...
    See more | Go to post

  • Ewan
    started a topic Gridview data populates only after button click.

    Gridview data populates only after button click.

    Hi

    I have a gridview which should populate based on some criteria that the end user selects.

    To enable the user to enter the required criteria i have added some Web Controls like Textbox,Drop Down Lists etc.



    My code behind for getting the data is as below
    Code:
    Imports System.Data
    Imports System.Data.SqlClient
    
    Protected Sub Page_Load(ByVal sender As Object,
    ...
    See more | Go to post

  • How to redirect to another url when Edit (option in gridview) is clicked?

    Hi

    Im using Visual Studio 2008, i have a gridview which gets data from an SQL table. I have added the Edit option which is part of gridview.
    The data has a primary key set.

    How do i redirect to another URL when the edit option is clicked.
    This action should also assign the primary key as a URL Parameter, causing only that specific record to show on the Edit page.

    I have gone through this...
    See more | Go to post

  • joss Perold
    started a topic Textbox Calendar Extender in a gridview

    Textbox Calendar Extender in a gridview

    Hi

    I have a a gridview with a number of columns, each column has a textbox with a calendar extender attached. The problem comes when i click on the popup button, it opens a calendar for each row in the column at the same time. So if there are four rows, it will open 4 calendars.

    How do i make it only open the one for the specific row i am working with?

    I am very new to Ajax so i am rather confused....
    See more | Go to post

  • jagdeep gupta
    started a topic Why Gridview is Not allowing Updation?

    Why Gridview is Not allowing Updation?

    As file have been attached it is getting data from table which has 3 field id class and name.
    I am Trying to Update table but I cant get it. Please help me....
    See more | Go to post

  • GridView, AutoGenerateEditButton - changing language

    Hello!
    If anyone can tell me how to change language of text in automatic edit button in GridView, to language which user has selected? By default its in english but i need to allow user to switch the text to polish.

    Here is part of my code (it works for word: "Edit", but when it is clicked, then appears buttons: Update/Cancel, which are displayed only in english,wheneve r the "myCulture" session is "pl-PL")....
    See more | Go to post

  • DeanC
    started a topic Editing Gridview template field problem

    Editing Gridview template field problem

    I am having a problem when I am updating my rows. The data is being typed in is getting overriden by the data that was previously there. Does anyone know how to fix this?

    Code:
    protected void HFReportGrid_RowUpdating(object sender, GridViewUpdateEventArgs e)
        {
    TextBox Points = HFReportGrid.Rows[e.RowIndex].FindControl("txtPoints") as TextBox;
    TextBox Comment = HFReportGrid.Rows[e.RowIndex].FindControl("txtComment")
    ...
    See more | Go to post
Working...