You must Sign In to post a response.
  • Category: ASP.NET

    ASP.NET /C# Gridview - Set header row tooltip programatically

    I have a gridview which has 2 header rows as below

    |...Name..|....Subject1...|...Subject2....|
    |..................|......T.....|....V....|......T....|....V.....|
    |---------|------|------|------|-------|
    |..John......|...80....|..20.....|....78..|.....18....|
    |...Ann......|...75....|...18....|...68...|.....15....|

    The grid view data source is a data table which i have created dynamically. Header rows are also created dynamically. Now I want to set tooltip for the second header row as 'Theory' for 'T' and 'Viva' for 'V'.

    By using gvMarks.HeaderRow.Cells[1].Tooltip, I am able to set tooltip only for the first header row. If I use gvMarks.Rows[1].Cells[1].Tooltip, I am able to access only the grid data rows.

    How can I access the second header row so that I can set the tooltip programatically.
  • #769243
    Hi

    can you share the code for your issue then only we can easily fixed your issue.

    Name : Dotnet Developer-2015
    Email Id : kumaraspcode2009@gmail.com

    'Not by might nor by power, but by my Spirit,' says the LORD Almighty.


  • Sign In to post your comments