Hi everybody,
how to sort datagrid when AutoGenerateColumns is set to false?
When AutoGenerateColumns=true then sort is easy (column header is hyperlink and can click on it, only you need to do is to write sort function), but when AutoGenerateColumns=false and I create columns
then column header isn't hyperlink and can't click on it.VB Code:
<Columns> <asp:BoundColumn DataField="trans" HeaderText="Trans #" /> <asp:BoundColumn DataField="date" HeaderText="Trans date"/> <asp:BoundColumn DataField="amount" HeaderText="Amount" /> </Columns>
How to sort datagrid in that case?
regard j


Reply With Quote