Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
125
Tooltips on columns in UltraWebGrid
posted

Hi All,

I am using an UltraWebGrid to display data.  Ideally I would like for all cells that share a column to display the same Tooltip when the user hovers over them.  I have seen examples of setting tooltips on cells, but this is usually on a row add event.  Unfortunately this is not an option for me as I am binding the data to the grid in a single command.

Any ideas?

Many thanks,

AJ

Parents
  • 45049
    Suggested Answer
    posted

    AJ,

    However you're putting data into WebGrid, you can access the rows as they're created.  From there, you can get to the cell in the appropriate column, and set that cell's Title property to the tooltip you want to dipslay.

    If you're using a typical data binding scenario, such as by setting either the DataSource or DataSourceID property of the control, you can use the InitializeRow event.  This will be raised once for each row created through data binding.

    If you're manually populating the grid with data, then you're creating the row objects yourself, which will allow you to get a reference to each one.

Reply Children