Amitava_Mukherjee
asked on
how to freeze left three columns of a datagridview in asp.net
I want to freeze left three columns of datagridview in asp.net. It is a readily available property in WinForm, but how to make it in asp.net? Please suggest.
Any javascript code snippet or CSS code is also welcome.
Thanking you,
Soumen
Any javascript code snippet or CSS code is also welcome.
Thanking you,
Soumen
ASKER
left: expression(document.getEle mentById(" tbl-contai ner").scro llLeft);
this line generate error in CSS. Error returns "tbl-container is not a valid value for the list property"
this line generate error in CSS. Error returns "tbl-container is not a valid value for the list property"
Do you mean "tbl-container is not a valid value for the left property?"
My CSS in VS says that also. But it still works. Is the page not loading at all?
My CSS in VS says that also. But it still works. Is the page not loading at all?
ASKER
the page is loading and showing all the things without any error. but no effect of the css
I'd specified the the css in my seleted theme's css file
I'd specified the the css in my seleted theme's css file
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanx
There might be more elegant ways, but I use this method to lock the head or cols.
Be sure to put your datagrid in a div called <div id="tbl-container">
Also, be sure to add this to the grid properties - OnItemDataBound="myGrid_It
Open in new window