i have a filed in my sql server type is bit
i need when i show this in datagrid view when this is true write in my cell in datagridview = OKK when in false write NOO how i can this ???
You would need to create your own column and cell classes derived from DataGridViewTextBoxColumn and DataGridViewTextBoxCell. You'd have to override methods like ParseFormattedValue and GetFormattedValue to convert between the True and False values of the underlying field and the OK and NO strings you wanted to display.
That's an example of creating custom columns and cells. It's up to you to determine exactly what needs to be done in your situation. I think it should only be those two methods of the cell class I mentioned.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.