I want to get specific colums to show on my C# WPF DataGrid.
I used this code to get selected columns:
using (SqlConnection con = new SqlConnection(ConString))
{
SqlCommand cmd = new SqlCommand("SELECT roll FROM cmt_7th", con);
SqlDataAdapter sda = new SqlDataAdapter(cmd);
DataTable dt = new DataTable("cmt_7th");
sda.Fill(dt);
MydataGrid_roll.ItemsSource = dt.DefaultView;
}
But I want to show only those row which column data is empty .

Left image is output screen short and right image is sql table image on "Like this" link image
I want to get rows 5 to 10 and ignore 1 to 4 row where all columns are not null.
