I am having an issue with using DataTextFormatString property where the values are not actually being formatted when they are being bound to the drop down list.
dvWaterLimits = this._lookupProvider.GetDataTable(version, form, package, state, DateTime.Today(), Zone);
this.ddlMyDropDown.DataSource = dvWaterLimits;
this.ddlMyDropDown.DataTextField = "LimitDescription";
this.ddlMyDropDown.DataValueField = "TotalLimit";
this.ddlMyDropDown.DataTextFormatString = " {0:$###,###,##0} ";
this.ddlMyDropDown.DataBind();
The data table I am getting back looks like the following:
Where the second column is the TotalLimit
and the fifth column is LimitDescription
1133 5000 2 3 $5000
1133 10000 2 3 $10000
1133 15000 2 3 $15000
1133 20000 2 3 $20000
1133 25000 2 3 $25000
And the Drop down looks just like the fifth column when it should look like $5,000 $10,000... etc. with the commas.