工作遇到一個小狀況
新增一列時
畫面欄位家在最後一列就沒有問題
但插入在中間就有問題
後來請教前輩才發現
因舊有有排序相關問題
e.Item.Cells[12].Text=e.Item.Cells[12].Text== " "?"":dlAplyStatus.Items.FindByValue(e.Item.Cells[12].Text.Trim()).Text;
需增加一個cells
e.Item.Cells[13].Text=e.Item.Cells[13].Text== " "?"":dlAplyStatus.Items.FindByValue(e.Item.Cells[13].Text.Trim()).Text;
這段好像是將cells綁定的語法
詳細的還要再study
先記錄一下
沒有留言:
張貼留言