M
McNutt Consulting
I'm trying to implement a datagrid with dynamically created columns. The
data is coming out of a very simple XML file, and it's bound through a
dataview.
The datagrid is just a shell definition with no column definitions in the
..aspx file.
The grid is binding fine with all the data being displayed, but my numeric
columns aren't being formatted. I'm using the "dataformattextstring", but
it doesn't seem to be working. Is there anything else I need to do?
Thanks for any help you can give,
Larry
example of my code:
Dim dgc as datagridcolumn
dgc.HeaderText = "Title"
dgc.DataNavigateUrlField = "account"
dgc.DataNavigateUrlFormatString = "detail.aspx={0}"
dgc.DataTextField = "account"
dgc.DataTextFormatString = "{0:n}"
dg.Columns.Add(dgc)
data is coming out of a very simple XML file, and it's bound through a
dataview.
The datagrid is just a shell definition with no column definitions in the
..aspx file.
The grid is binding fine with all the data being displayed, but my numeric
columns aren't being formatted. I'm using the "dataformattextstring", but
it doesn't seem to be working. Is there anything else I need to do?
Thanks for any help you can give,
Larry
example of my code:
Dim dgc as datagridcolumn
dgc.HeaderText = "Title"
dgc.DataNavigateUrlField = "account"
dgc.DataNavigateUrlFormatString = "detail.aspx={0}"
dgc.DataTextField = "account"
dgc.DataTextFormatString = "{0:n}"
dg.Columns.Add(dgc)