Hi
I want if value in Gridview column is 'D' or 'S' then SessionDate should be disabled
Thanks
Anandu G NathPosted Dec 27, 2023, 8:26 AM
Tuhin PaulPosted May 7, 2023, 3:08 AM
Sachin SinghPosted May 6, 2023, 5:36 PM
you can also test this
Naimish MakwanaPosted May 6, 2023, 6:01 AM
You can achieve this by handling the
RowDataBoundevent of the GridView in your code-behind file. In this event, you can check the value of the column and disable the SessionDate TextBox accordingly.Here's some sample code that demonstrates how to do this:
Make sure to replace "ColumnName" with the actual name of the column in your GridView that contains the value you want to check.
Thanks