barski Posted January 22, 2003 Posted January 22, 2003 Why aren't the columns created after I set the datasource. here's the code dg.datasource = ds.tables(0) dg.databind x = dg.columns.count x always equals zero even though it is displaying several columns of data Quote
*Experts* Nerseus Posted January 22, 2003 *Experts* Posted January 22, 2003 I think you have to call SetDataBinding... -Nerseus Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
*Experts* Nerseus Posted January 23, 2003 *Experts* Posted January 23, 2003 I assume dg is a DataGrid control. Use the dg.SetDataBindings method. At least, I think that's what you need. -nerseus Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
barski Posted January 23, 2003 Author Posted January 23, 2003 That's not a method for the datagrid or at least it doesn't appear to be Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.