Click here to Skip to main content
15,894,405 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to select a cell of a column of a list View?? Pin
CPallini11-Jan-07 22:37
mveCPallini11-Jan-07 22:37 
Questionhow to read information from pdf files Pin
deepualuru11-Jan-07 18:32
deepualuru11-Jan-07 18:32 
QuestionMonitor letter Drive (D:) Pin
picasso211-Jan-07 18:15
picasso211-Jan-07 18:15 
AnswerRe: Monitor letter Drive (D:) Pin
stancrm11-Jan-07 19:53
stancrm11-Jan-07 19:53 
AnswerRe: Monitor letter Drive (D:) Pin
Nader Elshehabi11-Jan-07 21:37
Nader Elshehabi11-Jan-07 21:37 
QuestionAccessing Image from MS Access. [modified] Pin
Shaurya_Rastogi11-Jan-07 18:09
Shaurya_Rastogi11-Jan-07 18:09 
QuestionDataGrid Pin
swjam11-Jan-07 17:57
swjam11-Jan-07 17:57 
AnswerRe: DataGrid Pin
Nader Elshehabi11-Jan-07 21:48
Nader Elshehabi11-Jan-07 21:48 
ZapBranny wrote:
what is the proper way of associating a user-defined DataGrid to a form?

I wish you'd have asked this question before doing this Davinci workaround!Big Grin | :-D
Anyway. First you got to clean up your form -maybe by deleting it completely from your solution-. I don't know what else you and the designer have modified. So I believe "Better safe than sorry".
Now to your question.
1- Create a new project -whether to add it to the current solution or not is your choice-.
2- Choose Windows Control Library.
3- Now you have your user control. Switch to Code View.
4- Change the inheritance to DataGrid -or DataGridView as I would suggest. Why would you want DataGrid anymore?-.
5- Compile and you will have one error. Go to the line that causes the error and remove it:
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;

6- Now when you build that project you'll get a dll file. Either reference to that dll file -after you copy it to other projects' folders-, or if your Control Library project is in the same solution you can reference to it directly using the Projects tab in the reference dialog box.

Big PS.
If you want to delete a thread in the forum. There is a link to the lower right of each message you post. Click on it and delete both the messages you posted earlier.

RegardsRose | [Rose]

Questionerror in storage.InsertRecords [modified] Pin
tahreen shah11-Jan-07 17:11
tahreen shah11-Jan-07 17:11 
QuestionWhen is a DropDownItem not a DropDownItem? [modified] Pin
JoeRip11-Jan-07 16:55
JoeRip11-Jan-07 16:55 
AnswerRe: When is a DropDownItem not a DropDownItem? Pin
JoeRip11-Jan-07 17:29
JoeRip11-Jan-07 17:29 
AnswerRe: When is a DropDownItem not a DropDownItem? Pin
ChandruIT11-Jan-07 17:37
ChandruIT11-Jan-07 17:37 
GeneralRe: When is a DropDownItem not a DropDownItem? Pin
JoeRip11-Jan-07 18:25
JoeRip11-Jan-07 18:25 
QuestionPreview Type Window (Form) Pin
Nooie11-Jan-07 15:19
Nooie11-Jan-07 15:19 
Questiontopic for final year proj inj c# Pin
Mri1a11-Jan-07 12:56
Mri1a11-Jan-07 12:56 
AnswerRe: topic for final year proj inj c# Pin
Not Active11-Jan-07 14:42
mentorNot Active11-Jan-07 14:42 
GeneralRe: topic for final year proj inj c# Pin
Stephen Hewitt11-Jan-07 15:45
Stephen Hewitt11-Jan-07 15:45 
GeneralRe: topic for final year proj inj c# Pin
J4amieC11-Jan-07 22:28
J4amieC11-Jan-07 22:28 
GeneralRe: topic for final year proj inj c# Pin
Adam Crawford12-Jan-07 4:45
Adam Crawford12-Jan-07 4:45 
GeneralRe: topic for final year proj inj c# Pin
Stephen Hewitt14-Jan-07 12:11
Stephen Hewitt14-Jan-07 12:11 
GeneralRe: topic for final year proj inj c# Pin
ednrgc12-Jan-07 4:04
ednrgc12-Jan-07 4:04 
AnswerRe: topic for final year proj inj c# Pin
Christian Graus11-Jan-07 16:30
protectorChristian Graus11-Jan-07 16:30 
GeneralRe: topic for final year proj inj c# Pin
Stephen Hewitt11-Jan-07 17:19
Stephen Hewitt11-Jan-07 17:19 
GeneralRe: topic for final year proj inj c# Pin
Christian Graus11-Jan-07 17:45
protectorChristian Graus11-Jan-07 17:45 
GeneralRe: topic for final year proj inj c# Pin
ednrgc12-Jan-07 4:06
ednrgc12-Jan-07 4:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.