944,029 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Marked Solved
  • Views: 4762
  • VB.NET RSS
Jul 31st, 2006
0

Datagrid for typed dataset

Expand Post »
Hi,

Iam a new comer.Joined today.Would like to clear one of my doubts.

I have a doubt regarding the columns in datagrid.
Iam using vb.net2005 (win application)
I have a typed dataset, with the column names as that of the database(sql) table fields.i had set a datagrid's datasource to this particular typeddataset.
I have added my own column names to the datagrid and i have set the database field property to the corresponding fields in Database tables.
But while it displays, the grid gives me the columns that i have added as well as columns as that of the typed dataset's filed names.and the first set of columns(added ones) are empty and the the columns which bear the typeddataset's column names have values.
What should be done?
Where i went wrong?
I actually need a datagrid which shows the values in the typeddataset with my own column names and not that of the typed dataset's.
Hope iam clear in expressing my doubt.
Anybody knows where i went wrong, please reply as early as possible.It's very urgent.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
chepps is offline Offline
5 posts
since Jul 2006
Jul 31st, 2006
0

Re: Datagrid for typed dataset

Asp.Net AutoGenerateColumns attribute in datagrids is on by default, set the attribute to false in the aspx page.

<asp:DataGrid AutoGenerateColumns="False" ...
Last edited by hollystyles; Jul 31st, 2006 at 10:45 am.
Reputation Points: 262
Solved Threads: 68
Veteran Poster
hollystyles is offline Offline
1,181 posts
since Feb 2005
Aug 1st, 2006
0

Re: Datagrid for typed dataset

Thanks it is working
Reputation Points: 10
Solved Threads: 0
Newbie Poster
chepps is offline Offline
5 posts
since Jul 2006

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: anyone know how to use zedgraph in vb.net?
Next Thread in VB.NET Forum Timeline: Required Help urgently





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC