Myworld
Myworld

Reputation: 1899

NULL value when update data

I had grid view which retrieved data from database and mad update for specific columns but when I did update on columns it give other columns null value what can I do?

note :the columns which had null value I made them readonly because user hadnot permission to edit them

Upvotes: 1

Views: 984

Answers (1)

Aristos
Aristos

Reputation: 66649

Because you have place the read only you get the null - and its normal, but you need to remove the sql reference for this value

Go to your SqlDataSource on the update command (or other) and remove the read only value that you have place from the update query.

Upvotes: 1

Related Questions