StrataFrame Forum

FormatString in ListViewPopulationSettings Wizard

http://forum.strataframe.net/Topic20295.aspx

By Jeff Pagley - 10/23/2008

I'm have setup the SF Listview using the ListViewPopulationSettings wizard.  I want to display a column in the currency format.  In the wizard I currently have the format set to {1} which displays the value as 80.0000.  How do get the listview to display the value as $80.00?

Thanks,

Jeff

By Trent L. Taylor - 10/23/2008

{1:C} if you want the currency format.  {1:n2} if you just want it to be numeric with 2 decimals.
By Jeff Pagley - 10/23/2008

Thanks Trent.  That worked.  However, I have another question.  Is there a way to stop the ChildFormDialog from openning when double clicking on a row within the list box.  Under some conditions on the parent form I don't want the user to be able to do this.  I thought I would put the logic in the BeforeChildFormExecuted event, but there is no way I see using the event args to cancel it from openning.

Thanks,

Jeff

By Edhy Rijo - 10/23/2008

Hi Jeff,

What about setting the ListView.PerformEditActionOnDoubleClick = False (by default it is True) Hehe

By Jeff Pagley - 10/23/2008

Hi Edhy,

Thank you.  That is what I was looking for.

Jeff