Click here to Skip to main content
15,914,488 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Shutdown Parameters Pin
Colin Angus Mackay9-Jan-06 12:06
Colin Angus Mackay9-Jan-06 12:06 
AnswerRe: Shutdown Parameters Pin
Dave Kreskowiak9-Jan-06 12:15
mveDave Kreskowiak9-Jan-06 12:15 
QuestionFinding records matching values between 2 parameterized values? Pin
Erwin_Br9-Jan-06 9:12
Erwin_Br9-Jan-06 9:12 
QuestionLooping enum elements? Pin
matsnas9-Jan-06 2:34
matsnas9-Jan-06 2:34 
AnswerRe: Looping enum elements? Pin
Duncan Edwards Jones9-Jan-06 3:15
professionalDuncan Edwards Jones9-Jan-06 3:15 
GeneralRe: Looping enum elements? Pin
matsnas9-Jan-06 3:24
matsnas9-Jan-06 3:24 
AnswerRe: Looping enum elements? Pin
J4amieC9-Jan-06 3:19
J4amieC9-Jan-06 3:19 
Questionresizing the width of columns in datagrid with datatable Pin
Pravin H9-Jan-06 0:52
Pravin H9-Jan-06 0:52 
Hello

I want to set the width of each columns in datagrid separately but not able to do that. I am using datagrid and datatable in my project the codes are as follows.

Dim Mytable as new datatable
Mytable.columns.add(“srno”, gettype, string))
Mytable.columns.add(“name”, gettype,( string))
Mytable.columns.add(“designation”, gettype,( string))
Mytable.columns.add(“remarks”, gettype,( string))

Datagrid1.datasourse = mytable
datagrid1.preferredcoloumswidth = 74


Now my problem is all the coloumns are OF the same width, as I wanted different width of different column. As of now all the columns have the same width whereas I don’t need so much width for the SRNO and need more wider colums in REMARKS. Please suggest how can I solve this problem.

Thanks alot

AnswerRe: resizing the width of columns in datagrid with datatable Pin
Dave Kreskowiak9-Jan-06 5:08
mveDave Kreskowiak9-Jan-06 5:08 
GeneralRe: resizing the width of columns in datagrid with datatable Pin
Pravin H9-Jan-06 20:08
Pravin H9-Jan-06 20:08 
GeneralRe: resizing the width of columns in datagrid with datatable Pin
Dave Kreskowiak10-Jan-06 2:55
mveDave Kreskowiak10-Jan-06 2:55 
GeneralRe: resizing the width of columns in datagrid with datatable Pin
Pravin H10-Jan-06 6:49
Pravin H10-Jan-06 6:49 
GeneralRe: resizing the width of columns in datagrid with datatable Pin
Dave Kreskowiak10-Jan-06 12:16
mveDave Kreskowiak10-Jan-06 12:16 
GeneralRe: resizing the width of columns in datagrid with datatable Pin
Pravin H11-Jan-06 6:40
Pravin H11-Jan-06 6:40 
GeneralRe: resizing the width of columns in datagrid with datatable Pin
Dave Kreskowiak11-Jan-06 11:01
mveDave Kreskowiak11-Jan-06 11:01 
GeneralRe: resizing the width of columns in datagrid with datatable Pin
Pravin H12-Jan-06 0:25
Pravin H12-Jan-06 0:25 
QuestionVBA Doubt Pin
<color>Aljechin 8-Jan-06 23:54
<color>Aljechin 8-Jan-06 23:54 
AnswerRe: VBA Doubt Pin
Curtis Schlak.9-Jan-06 2:00
Curtis Schlak.9-Jan-06 2:00 
GeneralRe: VBA Doubt Pin
<color>Aljechin 9-Jan-06 20:14
<color>Aljechin 9-Jan-06 20:14 
QuestionVB.Net Naming Convention Pin
GaneshParam8-Jan-06 23:13
GaneshParam8-Jan-06 23:13 
AnswerRe: VB.Net Naming Convention Pin
Colin Angus Mackay9-Jan-06 1:25
Colin Angus Mackay9-Jan-06 1:25 
AnswerRe: VB.Net Naming Convention Pin
Ray Cassick9-Jan-06 10:52
Ray Cassick9-Jan-06 10:52 
QuestionFresher: Passing and accessing common variables Pin
mayhem_rules8-Jan-06 23:11
mayhem_rules8-Jan-06 23:11 
Questionplz send me a WINSOCK Example Pin
Paritos8-Jan-06 19:20
Paritos8-Jan-06 19:20 
AnswerRe: plz send me a WINSOCK Example Pin
Marc Soleda8-Jan-06 20:37
Marc Soleda8-Jan-06 20:37 

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.