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

Visual Basic

 
GeneralRe: DataBase Pin
mm_chanakaya14-Aug-05 7:38
mm_chanakaya14-Aug-05 7:38 
Questionhow to create user profiles? Pin
JeroPatra11-Aug-05 21:15
JeroPatra11-Aug-05 21:15 
AnswerRe: how to create user profiles? Pin
Anonymous12-Aug-05 3:16
Anonymous12-Aug-05 3:16 
Generalproblem crystal report Pin
abhinish11-Aug-05 20:35
abhinish11-Aug-05 20:35 
GeneralRe: problem crystal report Pin
Mr. Naveed Butt12-Aug-05 1:33
professionalMr. Naveed Butt12-Aug-05 1:33 
GeneralRe: problem crystal report Pin
Anonymous12-Aug-05 1:42
Anonymous12-Aug-05 1:42 
GeneralRe: problem crystal report Pin
ToddHileHoffer12-Aug-05 6:39
ToddHileHoffer12-Aug-05 6:39 
GeneralDatagrid Misery !!! Pin
Brian_Murphy11-Aug-05 10:51
Brian_Murphy11-Aug-05 10:51 
Can someone please put me out of my misery. I have created a datagrid on a form which is linked to a table with four cloumns in it. I want to change the format of this datagrid by changing the widths, enabled properties etc when I load the form. I have tried loads of things and have been brought down to the level of just adding one column to a new tablestyle. The problem here is that it still displays the four columns. Below is the code I have put in the form load. After you finish laughing can you point out where I'm going wrong or point me to the idiots guide to datagrids,

Thanks in advance

Brian

Confused | :confused:

Private Sub frmMembers_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Dim MyGridTableStyle As New DataGridTableStyle
Dim aCol1 As New DataGridTextBoxColumn
DataGrid1.DataSource = Me.DataSet11.Tables("tblMembers").DefaultView

With aCol1
.MappingName = "MemID"
.HeaderText = "IDxx"
.Width = 40
.TextBox.Enabled = False
End With

With MyGridTableStyle.GridColumnStyles
.Add(aCol1)
End With

OleDbDataAdapter1.Fill(DataSet11)
MyGridTableStyle.MappingName = DataGrid1.DataMember
DataGrid1.DataSource = DataSet11.Tables("tblMembers").DefaultView
DataGrid1.TableStyles.Add(MyGridTableStyle)
End Sub
GeneralRe: Datagrid Misery !!! Pin
Christian Graus11-Aug-05 16:13
protectorChristian Graus11-Aug-05 16:13 
GeneralDatagrid Deletes Problem Pin
Anonymous11-Aug-05 10:38
Anonymous11-Aug-05 10:38 
GeneralRe: Datagrid Deletes Problem Pin
Christian Graus11-Aug-05 16:17
protectorChristian Graus11-Aug-05 16:17 
GeneralProblems with windows...and vb.net Pin
JimClark6811-Aug-05 7:25
JimClark6811-Aug-05 7:25 
GeneralRe: Problems with windows...and vb.net Pin
KaptinKrunch11-Aug-05 10:19
KaptinKrunch11-Aug-05 10:19 
GeneralRe: Problems with windows...and vb.net Pin
JimClark6812-Aug-05 3:42
JimClark6812-Aug-05 3:42 
GeneralRe: Problems with windows...and vb.net Pin
Christian Graus11-Aug-05 12:56
protectorChristian Graus11-Aug-05 12:56 
GeneralRe: Problems with windows...and vb.net Pin
JimClark6812-Aug-05 3:44
JimClark6812-Aug-05 3:44 
GeneralRe: Problems with windows...and vb.net Pin
Steve Pullan11-Aug-05 13:27
Steve Pullan11-Aug-05 13:27 
GeneralRe: Problems with windows...and vb.net Pin
JimClark6812-Aug-05 3:52
JimClark6812-Aug-05 3:52 
GeneralRunning my projects in different computers. Pin
JimClark6811-Aug-05 7:17
JimClark6811-Aug-05 7:17 
GeneralRe: Running my projects in different computers. Pin
Dave Kreskowiak11-Aug-05 8:18
mveDave Kreskowiak11-Aug-05 8:18 
GeneralRe: Running my projects in different computers. Pin
JimClark6812-Aug-05 3:41
JimClark6812-Aug-05 3:41 
GeneralDraw string in different colors Pin
tibmark11-Aug-05 7:11
tibmark11-Aug-05 7:11 
GeneralRe: Change color of a word in a string? Pin
Steve Pullan11-Aug-05 20:02
Steve Pullan11-Aug-05 20:02 
GeneralRe: Change color of a word in a string? Pin
tibmark12-Aug-05 2:45
tibmark12-Aug-05 2:45 
GeneralCombo box question Pin
dptalt11-Aug-05 5:10
dptalt11-Aug-05 5: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.