|
-
January 2nd, 2009, 09:10 AM
#1
How SQL DataAdapter can add a custom column to DataGridView?
I'm using DataGridView control and DataAdapter with SQL database does all control over it. Database can be of course on demand updated back with whatever user added/deleted/modified in the DataGridView.
Thing is - when DataAdapter initially fills DataGridView control and creating automatically columns and rows (as they are downloaded from SQL database), I need all columns to be MyCustomTextBoxColumn, not default DataGridTextBoxColumn. Can I do that?
Thanks in advance,
Vojtek
-
January 2nd, 2009, 05:25 PM
#2
Re: How SQL DataAdapter can add a custom column to DataGridView?
Yes you can have custom columns in a datagridview and as much as I know there is a full example for that how to create a custom datagridviewControl ( it has three radiobuttons in one column ) So it also should be possible to bind a datagrid which has a custom textboxcolumn to an sql Datasource.
 Jonny Poet
To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
If anyone felt he has got help, show it in rating the post.
Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ?
My latest articles :
Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|