modern_payam
دوشنبه 27 دی 1389, 14:25 عصر
با سلام و احترام
من یک دیتاگرید ویو دارم که سلولی دارد که از نوع چک باکس است می خواهم وقتی این چک باکس تیک خورد سطر مورد نظر پاک شود.
به جای اینکه با تیک خوردن چک باکس مقدار true بفرستد مقدار null می فرستد ولی وقتی 2 سطر را با هم انتخاب می کنیم در حالی که هر دو سطر چک باکس های آن تیک خورده فقط سطر دوم را پاک می کند. من چندین بار این کد را بدون خطا نوشته ام اما نمی دانم چرا اینطوری پاک می کند.
اگر 3 سطر انتخاب کنی 2 سطر آخر را پاک می کند.
اگر 4 سطر انتخاب کنی 3 سطر آخر را پاک می کند.
در هر صورت مقدارچک باکس سطر اول انتخابی را null می فرستد در حالی که من آن را تیک زده ام و باید true کند.
راههای رفته:
1- عوض کردن دیتاگرید ویو
2- کپی کردن کد از برنامه ای که درست اجرا می شد.
3-و........
ولی هیچ کدام از راه های رفته جواب نداد.
ممنون می شوم بگویید مشکل کار در کجاست ؟:متفکر:
من یک دیتاگرید ویو دارم که سلولی دارد که از نوع چک باکس است می خواهم وقتی این چک باکس تیک خورد سطر مورد نظر پاک شود.
به جای اینکه با تیک خوردن چک باکس مقدار true بفرستد مقدار null می فرستد ولی وقتی 2 سطر را با هم انتخاب می کنیم در حالی که هر دو سطر چک باکس های آن تیک خورده فقط سطر دوم را پاک می کند. من چندین بار این کد را بدون خطا نوشته ام اما نمی دانم چرا اینطوری پاک می کند.
اگر 3 سطر انتخاب کنی 2 سطر آخر را پاک می کند.
اگر 4 سطر انتخاب کنی 3 سطر آخر را پاک می کند.
در هر صورت مقدارچک باکس سطر اول انتخابی را null می فرستد در حالی که من آن را تیک زده ام و باید true کند.
راههای رفته:
1- عوض کردن دیتاگرید ویو
2- کپی کردن کد از برنامه ای که درست اجرا می شد.
3-و........
ولی هیچ کدام از راه های رفته جواب نداد.
ممنون می شوم بگویید مشکل کار در کجاست ؟:متفکر: