hi how to get data by store producer from sql server to hide empty cell
i m get data but empty cell in my sql table also come in my datagrid i thing i remove empty cell in coding in c# or crete store producer to get only data cell without empty cell
please help in both store producer or c# coding
How to get data from SQL to hide empty cell
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Roei BarRank #1,271 · 1.4K reputationPosted Sep 21, 2009, 12:54 AM EDT
select * from TblName where MotherBoard is not null And MotherBoard <> ''this will make sure you dont get the empty MotherBoard Rows
Roei BarRank #1,271 · 1.4K reputationPosted Sep 20, 2009, 10:18 PM EDT
Dharmesh SharmaRank #1,974 · 741 reputationPosted Sep 20, 2009, 11:03 PM EDT
id
Processor
MotherBoard
now the id is primary key and both field are varchar(50) ok
now i insert the value only processor and motherBoard is null
now again i am insert into motherboard and processor in null
now i am get data only processor the my grid has two rows look like this
in this image two field are empty because i m not insert the value its ok
but how to hide this field
please help me give sp in sql server or code in c#
thanks