private void IntentionTypeGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex > 0)
            {
                IntentionTypeUpdate.IntentionTypeID = IntentionTypeGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
                IntentionTypeUpdate.IntentionTypeName = IntentionTypeGridView1.Rows[e.RowIndex].Cells[1].Value.ToString();
                IntentionTypeUpdate.IntentionTypeDesc = IntentionTypeGridView1.Rows[e.RowIndex].Cells[2].Value.ToString();
            }
        }获取中选的GridView行,现在的问题是自从加了if (e.RowIndex > 0)后就获取不到第一行了,如果不加又不能点GridView栏的自动排序,请问高手们有什么好的解决方法吗?