Bind Binary data to Gridview
-
I have Gridview with AutoGenerateColumns to true(as I don't know how many columns will come). From database I am getting binary data. When I bind data table to gridview it displays checkbox with checked and unchecked. I need to display as 0 or 1. How can I do this?
-
I have Gridview with AutoGenerateColumns to true(as I don't know how many columns will come). From database I am getting binary data. When I bind data table to gridview it displays checkbox with checked and unchecked. I need to display as 0 or 1. How can I do this?
You can do it in multiple ways like - converting that boolean property to a string property in gridview source object, make use of template in griview.
Arun Jacob My Technical Blog : Code.NET
-
You can do it in multiple ways like - converting that boolean property to a string property in gridview source object, make use of template in griview.
Arun Jacob My Technical Blog : Code.NET
Can u post sample code
-
Can u post sample code
Change your query to return a string or integer instead of binary using convert() in TSQL (assuming SQL Server)
Never underestimate the power of human stupidity RAH
-
Change your query to return a string or integer instead of binary using convert() in TSQL (assuming SQL Server)
Never underestimate the power of human stupidity RAH
Thank u Holmes, working fine