پیداش کردم !
کل کدام رو کامنت کردم دونه دونه تست کردم از اول ...
گرید ویژال توی ReadOnly ستونها باگ داره من این کد رو نوشته بودم و تا زمانی که کامنت هست مشکلی نداره همین که از کامنت در بیاد بایند گرید در حالتی که بیش از 3 - 4 ردیف اطلاعات داشته باشد همراه با ارور است وگرنه همین کد با 1-2 ردیف مشکلی نداره!
//------------------------------Enable input Goods info until GoodsName Enter-------------//
private void dataGridViewSpesific1_CellEnter(object sender, DataGridViewCellEventArgs e)
{
if (e.ColumnIndex != 0 && dataGridViewSpesific1[0, e.RowIndex].Value.ToString() != "")
{
dataGridViewSpesific1[1, e.RowIndex].ReadOnly = false;
dataGridViewSpesific1[2, e.RowIndex].ReadOnly = false;
dataGridViewSpesific1[3, e.RowIndex].ReadOnly = false;
dataGridViewSpesific1[4, e.RowIndex].ReadOnly = false;
}
else
{
dataGridViewSpesific1[1, e.RowIndex].ReadOnly = true;
dataGridViewSpesific1[2, e.RowIndex].ReadOnly = true;
dataGridViewSpesific1[3, e.RowIndex].ReadOnly = true;
dataGridViewSpesific1[4, e.RowIndex].ReadOnly = true;
}
}