DataGrid dynamic columns

G

Guest

Hello all,

If I have a datagird with a number of columns, say 3, and then I add another
one dynamically, obviously it will have no data, what's the best way to get
the data, do I have to rebind?

Thanks all,

Jon
 
B

Bob Barrows [MVP]

Jon said:
Hello all,

If I have a datagird with a number of columns, say 3, and then I add
another one dynamically, obviously it will have no data, what's the
best way to get the data, do I have to rebind?
Yes.
 
B

Bob Barrows [MVP]

Jon said:
Hello all,

If I have a datagird with a number of columns, say 3, and then I add
another one dynamically, obviously it will have no data, what's the
best way to get the data, do I have to rebind?
Of course, you could loop through the roes and populate the cells yourself
....
 

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

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,045
Latest member
DRCM

Latest Threads

Top