Filter query and choose color

Topics: Data Access, SharpMap v0.9 / v1.x, WinForms Controls
Jan 3, 2008 at 5:06 PM
Hello...

First, sorry by my bad english, but I'm from Brazil...

My question is...

I'm working with postgis, and I have one VectorLayer called Unidades, in this layer I have a collumn called Altimetria that have numeric values, I need show in a datagridview only the rows that have altimetria <= 82, how I do this???

I'm using this code to get all the rows:

private void button1_Click(object sender, EventArgs e)
{
SharpMap.Data.FeatureDataSet ds = new SharpMap.Data.FeatureDataSet();
Unidades.DataSource.Open();
Unidades.DataSource.ExecuteIntersectionQuery(Unidades.Envelope, ds);
Unidades.DataSource.Close();
this.dataGridView1.DataSource = ds.Tables0;
this.dataGridView1.Refresh();
}


Other question...

All this geometry that was selected where altimetria <= 82 need choose the color, to the user can see the polygons that have altimetria <= 82, how I do this????