true false field in datagridview

bahram

Member
Joined
May 1, 2006
Messages
13
Programming Experience
1-3
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.
 
Back
Top