Change Column width from Datagridview without dataset
-
Hellow code friends, I was searching 4 a while after my question but most of the time i find answers with a dataset. I'm getting my data from a DB (without envolving a dataset). So My 4th column or column called opmerkingen is to small in width. I just want to set my with to 80 or something when my datagridview is loaded. Can anyone solve my problem in a simple way?? If you answer please do this with an example. there is nothing more clear then an ex... Thx in advance Greetings from a n00b
-
Hellow code friends, I was searching 4 a while after my question but most of the time i find answers with a dataset. I'm getting my data from a DB (without envolving a dataset). So My 4th column or column called opmerkingen is to small in width. I just want to set my with to 80 or something when my datagridview is loaded. Can anyone solve my problem in a simple way?? If you answer please do this with an example. there is nothing more clear then an ex... Thx in advance Greetings from a n00b
Hi not sure you googled correctly. This will help it helped me. How to Use Google and Other Tips for Finding Programming Help[^]
Frazzle the name say's it all
-
Hellow code friends, I was searching 4 a while after my question but most of the time i find answers with a dataset. I'm getting my data from a DB (without envolving a dataset). So My 4th column or column called opmerkingen is to small in width. I just want to set my with to 80 or something when my datagridview is loaded. Can anyone solve my problem in a simple way?? If you answer please do this with an example. there is nothing more clear then an ex... Thx in advance Greetings from a n00b
myDGV.Columns[3].Width=80; // or something
or even maybe (once populated):
myDGV.AutoResizeColumns();
:)
Luc Pattyn [My Articles] Nil Volentibus Arduum
-
myDGV.Columns[3].Width=80; // or something
or even maybe (once populated):
myDGV.AutoResizeColumns();
:)
Luc Pattyn [My Articles] Nil Volentibus Arduum
-
Hellow code friends, I was searching 4 a while after my question but most of the time i find answers with a dataset. I'm getting my data from a DB (without envolving a dataset). So My 4th column or column called opmerkingen is to small in width. I just want to set my with to 80 or something when my datagridview is loaded. Can anyone solve my problem in a simple way?? If you answer please do this with an example. there is nothing more clear then an ex... Thx in advance Greetings from a n00b