G Guest Jun 24, 2004 #1 Is there a way to make a datagrid display nothing rather than (null) when the field has a null value. Im using visual studio and sql server???
Is there a way to make a datagrid display nothing rather than (null) when the field has a null value. Im using visual studio and sql server???
I Ignacio Machin \( .NET/ C# MVP \) Jun 24, 2004 #2 Hi, Win or ASP.NET ? If ASP.NET you can use a method that eval the value and return a string like "nothing" If a Win app , I don't know for sure the best way of doing it. Cheers, -- Ignacio Machin, ignacio.machin AT dot.state.fl.us Florida Department Of Transportation Lane said: Is there a way to make a datagrid display nothing rather than (null) when Click to expand... the field has a null value. Im using visual studio and sql server???
Hi, Win or ASP.NET ? If ASP.NET you can use a method that eval the value and return a string like "nothing" If a Win app , I don't know for sure the best way of doing it. Cheers, -- Ignacio Machin, ignacio.machin AT dot.state.fl.us Florida Department Of Transportation Lane said: Is there a way to make a datagrid display nothing rather than (null) when Click to expand... the field has a null value. Im using visual studio and sql server???
A Alan Pretre Jun 24, 2004 #3 Lane said: Is there a way to make a datagrid display nothing rather than (null) when Click to expand... the field has a null value. Im using visual studio and sql server??? Setup Data Grid Column Styles. You can tell it how to format your text, as well as what to display when the value is null. See: http://msdn.microsoft.com/library/d...wsFormsDataGridColumnStyleClassctorTopic1.asp -- Alan
Lane said: Is there a way to make a datagrid display nothing rather than (null) when Click to expand... the field has a null value. Im using visual studio and sql server??? Setup Data Grid Column Styles. You can tell it how to format your text, as well as what to display when the value is null. See: http://msdn.microsoft.com/library/d...wsFormsDataGridColumnStyleClassctorTopic1.asp -- Alan