<p>Continuing my problem from yesterday, the Silverlight datagrid I have from this <a href="https://stackoverflow.com/questions/74461/silverlight-datagrid-control-selection-changed-event-interfering-with-sorting">issue</a>
is now causing Stack Overflow errors when sorting a column with a large amount of data (Like the text column that contains a where clause for a SQL statment).  When you sort, it'll fire the SelectedIndexChanged event for the datagrid and then still try to stort.  If you click the header again the stack overflow occours.  </p>

<p>Does anyone have an idea on how to stop the sorting on this control for a column?  All the other columns sort fine (but still fire that darn SelectedIndexChanged event), but if I could shut off the column for whereClause it'd be perfect.</p>

<p>Does anyone have a better idea at how to get this to work?</p>

Give this a shot:
```
```
dataGridView1.Columns[*Numberofthecolumnyoudontwantsorted*].SortMode
= DataGridViewColumnSortMode.NotSortable;
```
```