Click here to Skip to main content
16,005,138 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
GeneralRe: resizing the width of columns in datagrid with datatable Pin
Dave Kreskowiak10-Jan-06 12:16
mveDave Kreskowiak10-Jan-06 12:16 
It doesn't work because you reset the DataSource of the DataGrid, wiping out all the changes made to the TableStyles. Why are you adding all the Columns? You really don't need to unless your going to customize the look of them, which you're not doing in your code.
' I hope your DataSet actuall yhas a table in it called mytable.
' If not, this won't work.  Change this to reflect the name of YOUR
' table in your DataSet.
DataGrid1.DataSource = ds.Tables("mytable")
Dim ts As New DataGridTableStyle
ts.MappingName = "mytable"       ' Change this to match the name of the table in your DataSet
DataGrid1.TableStyles.Add(ts)
ts.GridColumnStyles(0).Width = 100



RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

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 
AnswerRe: how to design tables & coding for multilevel Bill Of Material having Main products,assemblies & Sub - assemblies & items in it. ??? Pin
Dave Kreskowiak9-Jan-06 2:21
mveDave Kreskowiak9-Jan-06 2:21 

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.