Results 1 to 2 of 2

Thread: Setting Column header and manipulate DATAGRID

  1. #1
    Junior Member
    Join Date
    Apr 2007
    Answers
    1

    Setting Column header and manipulate DATAGRID

    How can i manipulate DATAGRID?
    How can set its column headers,
    How can i get its row values so that i can put those values in textboxes to update?


  2. #2
    Junior Member
    Join Date
    Feb 2007
    Answers
    17

    Re: Setting Column header and manipulate DATAGRID

    Here is one of the example:

    protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
    {
    if (e.Row.RowType == DataControlRowType.DataRow)
    {
    e.Row.Attributes["onmouseover"] = "this.style.cursor='hand';this.style.color='Blue'";
    e.Row.Attributes["onmouseout"] = "this.style.textDecoration='none';this.style.color='Black'";


    }

    }
    }

    In this example I am adding some style to the ros items itself !!! So you can also do the same way !!!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact