I have a GridDropDownColumn as
<telerik:GridDropDownColumn DataField="CategoryID" DataSourceID="SqlDataSource2" HeaderText="Category" ListTextField="CategoryName" ListValueField="CategoryID" UniqueName="Category"></telerik:GridDropDownColumn>
and the radgrid has DataSourceID="SqlDatSource1". EditMode=InPlace.
It works fine in Edit mode but when it is not in Edit mode, the Category column will show the first value of the DropDown if SqlDatSource1 SelectCommand returns a row with Category is null. How to keep the cell value blank in View mode in this case?
Thanks,
d-cpt
<telerik:GridDropDownColumn DataField="CategoryID" DataSourceID="SqlDataSource2" HeaderText="Category" ListTextField="CategoryName" ListValueField="CategoryID" UniqueName="Category"></telerik:GridDropDownColumn>
and the radgrid has DataSourceID="SqlDatSource1". EditMode=InPlace.
It works fine in Edit mode but when it is not in Edit mode, the Category column will show the first value of the DropDown if SqlDatSource1 SelectCommand returns a row with Category is null. How to keep the cell value blank in View mode in this case?
Thanks,
d-cpt