Dynamic datagrid and Datatable

T

Tim Seaburn

I have a task that requires that I create and modify datatables and
datagrids dynamically. I first created four static columns in a datagrid
(all permutations have these same four columns). I then created a datatable
with the four columns having the same name expecting them to bind into the
four grid columns. It didn't work but if I had no columns defined in the
gird it worked.

The problem is that, with this approach, I can't figure out how to apply
edit masks as I would with...
Dim mycol As New BoundColumn
mycol.DataFormatString = "{0:C}"

Questions are:
Why doesn't the grid.databind() work when four columns already exist with
the same name as the dataset?
How can we apply editing when the columns in the gird got created by the
databind instead of an explicit dim mycol as new BoundColumn?
thanks,
tim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,836
Latest member
login dogas

Latest Threads

Top