Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Ado Data RDS > How do I only b...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 227 of 305
Post > Topic >>

How do I only bind certain columns with a DataGrid?

by "Grant" <gpsnett@[EMAIL PROTECTED] > Dec 11, 2004 at 04:28 PM

I have the following code that binds a datatable to my datasource. Problem 
is, the table has about 25 columns and I only really want to see 5 of
those 
columns. I know I can do it by changing my initial SQL query but that
means 
if I want to use other data later on I have to make another connection to 
SQL and get the additional data.

Is there a way to only bind to certain columns in my table? It is a 
webcontrol datagrid.

AllResultsDataGrid.DataSource = mySqlConnection.datasetHardware;
AllResultsDataGrid.DataMember = mySqlConnection.hardwareTableName;
AllResultsDataGrid.DataBind();

Thanks,

Grant
 




 3 Posts in Topic:
How do I only bind certain columns with a DataGrid?
"Grant" <gps  2004-12-11 16:28:09 
Re: How do I only bind certain columns with a DataGrid?
"W.G. Ryan eMVP"  2004-12-11 12:46:45 
Re: How do I only bind certain columns with a DataGrid?
"Grant" <gps  2004-12-14 19:36:38 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 13:56:43 CST 2008.