all groups > asp.net datagrid control > december 2005 >
You're in the

asp.net datagrid control

group:

control over a column in datagrid by clicking its header


control over a column in datagrid by clicking its header sakons
12/9/2005 11:37:14 AM
asp.net datagrid control: Hi all
I have a problemin a webcontrol datagrid
I want to click on a column header and then be able to sort the grid by
that column and select that column without using sortcommand -or
control the column by click its header - the line under the header test
is more my problem - how can i contol the header appeaence
well its a lot to ask and if something will be answered it will be
great

Shlomy Akons - s_akons@hotmail.com
Re: control over a column in datagrid by clicking its header Elton Wang
12/10/2005 1:18:02 PM
If you want to sort the datagrid, you should implement sorting logic
somewhere. Datagrid_SortCommand is best place to do it. Especially when you
want to sort multi-columns, you need SortExpression. Only in
Datagrid_SortCommand event, you can directly get e.SortExpression.



You can use CSS to change header appearance.



HTH







[quoted text, click to view]

Re: control over a column in datagrid by clicking its header sakons
12/13/2005 5:55:33 AM
thanks a lot it worked perfectly

Shlomy A
AddThis Social Bookmark Button