I'm using a devexpress gridcontrol/gridview pair, but I think this is a generic Windows controls/database question.
I am selecting from a sql server table a column that is defined nchar(16). Usually we define variable-length character data as nvarchar(16) so I don't usually have this problem.
When I bind my grid to the results of the query, that column is displaying "Radio ...". The ellipses are not because "Radio" doesn't fit the column width but because the column width can't accommodate 16 characters. But it is accommodating the shorter text that is there so the ellipses are annoying, unnecessary and confusing!
I thought this would work:
but it did not.
The mechanics of this is the select statement is in a stored procedure and I am using datasets/xsd files for the call to the sp. I thought there might be a property I could set in the xsd file, but the datatype is simply system.string.
Can I eliminate the ellipses?
I am selecting from a sql server table a column that is defined nchar(16). Usually we define variable-length character data as nvarchar(16) so I don't usually have this problem.
When I bind my grid to the results of the query, that column is displaying "Radio ...". The ellipses are not because "Radio" doesn't fit the column width but because the column width can't accommodate 16 characters. But it is accommodating the shorter text that is there so the ellipses are annoying, unnecessary and confusing!
I thought this would work:
Code:
select CONVERT(nvarchar(16), cons.[Description]) as [System Type]
The mechanics of this is the select statement is in a stored procedure and I am using datasets/xsd files for the call to the sp. I thought there might be a property I could set in the xsd file, but the datatype is simply system.string.
Can I eliminate the ellipses?