开发者

Changing the color and enable to edit the value in the selected Row for Datagrid in C#

开发者 https://www.devze.com 2023-01-09 18:59 出处:网络
I am retrieving a table from SQL database and save it into a dataset. After that I displayed that dataset on the form with DATAGRID.

I am retrieving a table from SQL database and save it into a dataset.

After that I displayed that dataset on the form with DATAGRID.

I can show that.

Here comes my problem.

I have a column in the dataset.

Let's call it Status.

If the status is open, I want to change the font of that row and allow User to edit that row.

If not, User cannot edit it.

Anyone?

I have been searching a lo开发者_如何学Pythont. But none of them really helped me.

I am using DATAGRID. NOT a gridview.

Thanks all.


Use a datatemplate with datatriggers.

0

精彩评论

暂无评论...
验证码 换一张
取 消