Datagrid sorting problem

Results 1 to 2 of 2

Thread: Datagrid sorting problem

  1. #1
    Join Date
    Dec 1969

    Default Datagrid sorting problem

    I have a sortable datagrid,all has bounded columns.<BR>Depending on certain conditions ,i&#039;m changing particular columns header caption on the itemcreated event of the datagrid like this<BR> e.Item.Cells(2).Text ="ABC"<BR>but after setting this the sorting facility is disabling of that particular column<BR>how to do this ?<BR><BR>Thanks in advance

  2. #2
    Join Date
    Dec 1969

    Default well yeah

    before your header text was:<BR><BR>&#060;a href="javascript:doPostBack(&#039;____&#039;,&#039 ;&#039;)"&#062;Original Header Text&#060;/a&#062;<BR><BR>and now you just changed it to "ABC"<BR><BR>so yes, you&#039;ll lose sorting.....<BR><BR>instead of just chaging the ".Text" of the header column, you&#039;ll have to get the "LinkButton" type that the sortable header column has, access that, and change the ".Text" of the linkbutton, not the column

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts