Multi Column labels

Topics: SharpMap Project, SharpMap v0.9 / v1.x, SharpMap v2.0, WinForms Controls
Sep 24, 2013 at 11:12 AM
Hi,

I had created a label layer and i am displaying the "Value" column from the database as label, now i had to display "Name" column along with the values, Please refer the code below
LayLabel.LabelColumn ="Value"; 

LayLabel.LabelColumn ="Name"+"\n"+"Value";  //if i add like this the map is not displaying
Please suggest any solution.

Regards
Arun Mohan
Coordinator
Sep 24, 2013 at 11:51 AM
LayLabel.LabelDelegate = r => string.Format("{0}\n{1}", r["Name"], r["Value"]);
Oct 4, 2013 at 4:47 AM
Hi FObermaier,

Thanks it worked