alanchinese Posted November 8, 2005 Posted November 8, 2005 i have made my user control containing textboxes and bind them into a dataset. one suggests i should fill the dataset with query "select xx, yy, zz from 1 = 0" to obtain the dataset schema dynamically. however, the NewRow of the dataset table only provides me the column names, but all with type System.DBNull is there an express method to initialize the new row other than putting default values of each control maually? Quote
Administrators PlausiblyDamp Posted November 8, 2005 Administrators Posted November 8, 2005 (edited) The DataAdapter class (and it's sub-classes) provide a FillSchema method, have you tried that? Edited November 8, 2005 by PlausiblyDamp Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
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.