Click here to Skip to main content
16,006,902 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionvb.net - ORACLE Pin
FeRtoll15-Nov-06 20:30
FeRtoll15-Nov-06 20:30 
AnswerRe: vb.net - ORACLE Pin
b43r_3oo315-Nov-06 22:32
b43r_3oo315-Nov-06 22:32 
QuestionDatagrid Pin
Subjugate15-Nov-06 20:15
Subjugate15-Nov-06 20:15 
AnswerRe: Datagrid Pin
Tamimi - Code15-Nov-06 20:23
Tamimi - Code15-Nov-06 20:23 
GeneralRe: Datagrid Pin
Subjugate15-Nov-06 20:58
Subjugate15-Nov-06 20:58 
GeneralRe: Datagrid Pin
Tamimi - Code15-Nov-06 21:39
Tamimi - Code15-Nov-06 21:39 
GeneralRe: Datagrid Pin
Subjugate15-Nov-06 22:15
Subjugate15-Nov-06 22:15 
GeneralRe: Datagrid Pin
Johan Hakkesteegt16-Nov-06 4:15
Johan Hakkesteegt16-Nov-06 4:15 
Just enter it anywhere in the code before you actually show the datagrid to the user.
Alternatively you can use this function, that will also lock you dataset for added protection. Just call it before you show your datagrid to the user.

<br />
	Private Function ColumnLock(ByVal key As Boolean)<br />
		Try<br />
			Dim col As DataColumn<br />
			YourDataGrid.DataSource = YourDataSet<br />
			YourDataGridPA.SetDataBinding(YourDataSet, "YourTableName")<br />
			YourDataGrid.ReadOnly = key<br />
			For Each col In YourDataSet.Tables(0).Columns<br />
				col.ReadOnly = key<br />
			Next col<br />
		Catch Ex As Exception<br />
			msgbox(Ex.message)<br />
		End Try<br />
	End Function<br />


Johan
QuestionWindows Media Player Control Pin
Kevnar15-Nov-06 18:37
Kevnar15-Nov-06 18:37 
AnswerRe: Windows Media Player Control Pin
MatrixCoder19-Nov-06 22:06
MatrixCoder19-Nov-06 22:06 
QuestionVB.NET (ActiveX web browser control) Pin
gspowar15-Nov-06 17:54
gspowar15-Nov-06 17:54 
QuestionNetwork-Database Programming How to Pin
sitt15-Nov-06 17:41
sitt15-Nov-06 17:41 
AnswerRe: Network-Database Programming How to Pin
Johan Hakkesteegt17-Nov-06 6:08
Johan Hakkesteegt17-Nov-06 6:08 
QuestionListView Pin
momooomooomomo15-Nov-06 16:02
momooomooomomo15-Nov-06 16:02 
AnswerRe: ListView Pin
Christian Graus15-Nov-06 16:55
protectorChristian Graus15-Nov-06 16:55 
AnswerRe: ListView Pin
sitt15-Nov-06 17:53
sitt15-Nov-06 17:53 
AnswerRe: ListView Pin
Johan Hakkesteegt17-Nov-06 6:26
Johan Hakkesteegt17-Nov-06 6:26 
AnswerRe: ListView Pin
Daytona_67518-Nov-06 4:16
Daytona_67518-Nov-06 4:16 
AnswerRe: how to use CSV?? [urgent] Pin
Christian Graus15-Nov-06 15:45
protectorChristian Graus15-Nov-06 15:45 
General[Message Deleted] Pin
campbells15-Nov-06 16:20
campbells15-Nov-06 16:20 
GeneralRe: how to use CSV?? [urgent] Pin
Christian Graus15-Nov-06 16:47
protectorChristian Graus15-Nov-06 16:47 
GeneralRe: how to use CSV?? [urgent] Pin
ChandraRam16-Nov-06 2:00
ChandraRam16-Nov-06 2:00 
QuestionClass Pin
momooomooomomo15-Nov-06 14:37
momooomooomomo15-Nov-06 14:37 
AnswerRe: Class Pin
Christian Graus15-Nov-06 15:10
protectorChristian Graus15-Nov-06 15:10 
GeneralRe: Class Pin
momooomooomomo15-Nov-06 16:04
momooomooomomo15-Nov-06 16:04 

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.