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

Visual Basic

 
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 
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 
Sorry but it still has erros

I tried you codes but still I have one more error sending you my declarations

DECLARATION

Dim mytable As New DataTable
Dim ds As New DataSet

ON FORM LOAD


mytable.Columns.Add(New DataColumn("ContactPerson", GetType(String)))
mytable.Columns.Add(New DataColumn("DESIGNATION", GetType(String)))
mytable.Columns.Add(New DataColumn("PHONENO", GetType(String)))
mytable.Columns.Add(New DataColumn("EXTN", GetType(String)))
mytable.Columns.Add(New DataColumn("CELLNO", GetType(String)))
mytable.Columns.Add(New DataColumn("SALESMAN", GetType(String)))
mytable.Columns.Add(New DataColumn("REMARKS", GetType(String)))


Me.DataGrid1.DataSource = ds.Tables("mytable")
Dim ts As New DataGridTableStyle

ts.MappingName = "mytable"
DataGrid1.TableStyles.Add(ts)

Me.DataGrid1.DataSource = mytable
ts.GridColumnStyles(0).Width = 100

ERROS IS HERE (index is out of range: MUST BE NEGATIVE AND LESS THAN THE SIZE OF THE COLLECTIONS)

Thanks again for you help and you Suggestionss

Thanks again
Regards
Frown | :(
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 
QuestionData Bindinig In Visual basic 6.0 Pin
tusar1238-Jan-06 19:02
tusar1238-Jan-06 19:02 
AnswerRe: Data Bindinig In Visual basic 6.0 Pin
Deepaish9-Jan-06 7:33
Deepaish9-Jan-06 7:33 
Questionhow to design tables & coding for multilevel Bill Of Material having Main products,assemblies & Sub - assemblies & items in it. ??? Pin
ashu7778-Jan-06 18:42
ashu7778-Jan-06 18:42 
Answer...How to ... ??? Pin
toxcct9-Jan-06 0:10
toxcct9-Jan-06 0:10 

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.