R
rn5a
A DataList displays 3 columns - Product, Category & Price. These
columns are populated with records from a SQL Server 2005 DB table.
Apart from the above 3 DB columns that the resultset retrieves, there
is another DB column named 'Description'. Though the resultset fetches
this column as well along with the above 3 columns, I am excluding the
Description column from the DataList - the reason being most of the
descriptions are pretty long & this may drastically increase the width
of the entire DataList which I would like to avoid. I don't prefer
wrapping any column text in the DataList as well.
This is why I want that when a user hovers his mouse over one
particular row in the DataList, that row should display a ToolTip for
the DB record it houses & the ToolTip should show the description of
that particular record.
For e.g. if one of the DB records under the DB columns 'Product',
'Category', 'Price', 'Description' is 'Lancer', 'Car', '25000', 'This
car is blah...blah...blah...blah...blah....' respectively, then one of
the rows in the DataList would be
Lancer Car 25000
Now when a user hovers his mouse over this row in the DataList, a
ToolTip stating 'This car is blah...blah...blah...blah...blah....'
should come up.
In other words, hovering the mouse over different rows in the DataList
should show different ToolTips (which should be the corresponding
description). How do I do this?
columns are populated with records from a SQL Server 2005 DB table.
Apart from the above 3 DB columns that the resultset retrieves, there
is another DB column named 'Description'. Though the resultset fetches
this column as well along with the above 3 columns, I am excluding the
Description column from the DataList - the reason being most of the
descriptions are pretty long & this may drastically increase the width
of the entire DataList which I would like to avoid. I don't prefer
wrapping any column text in the DataList as well.
This is why I want that when a user hovers his mouse over one
particular row in the DataList, that row should display a ToolTip for
the DB record it houses & the ToolTip should show the description of
that particular record.
For e.g. if one of the DB records under the DB columns 'Product',
'Category', 'Price', 'Description' is 'Lancer', 'Car', '25000', 'This
car is blah...blah...blah...blah...blah....' respectively, then one of
the rows in the DataList would be
Lancer Car 25000
Now when a user hovers his mouse over this row in the DataList, a
ToolTip stating 'This car is blah...blah...blah...blah...blah....'
should come up.
In other words, hovering the mouse over different rows in the DataList
should show different ToolTips (which should be the corresponding
description). How do I do this?