Click here to Skip to main content
15,888,286 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Bound Datagridview Column Which Shows Name instead of ID. Pin
Dinesh Prajapati31-Dec-13 20:07
Dinesh Prajapati31-Dec-13 20:07 
QuestionDisplay data from SQL into a form Pin
Member 1038849413-Nov-13 10:16
Member 1038849413-Nov-13 10:16 
AnswerRe: Display data from SQL into a form Pin
Pete O'Hanlon13-Nov-13 11:42
mvePete O'Hanlon13-Nov-13 11:42 
Questionwebtransform issue... anyone? Pin
Desvariovsk13-Nov-13 6:31
Desvariovsk13-Nov-13 6:31 
AnswerRe: webtransform issue... anyone? Pin
WuRunZhe17-Nov-13 21:21
WuRunZhe17-Nov-13 21:21 
GeneralRe: webtransform issue... anyone? Pin
Desvariovsk18-Nov-13 1:33
Desvariovsk18-Nov-13 1:33 
QuestionRe: webtransform issue... anyone? Pin
Eddy Vluggen21-Nov-13 7:28
professionalEddy Vluggen21-Nov-13 7:28 
QuestionRefreshing DGV after db (access 2007) changed Pin
jose mandurrino13-Nov-13 5:54
jose mandurrino13-Nov-13 5:54 
Hi all, I'm new in VB .NET and need some support.

I have a problem in refreshing the data into the DGV after someone updated the database (access 2007) that feed it.
Even if I checked a lot before, I can't find the solution for it.

The main problem is that I have code automatically added by Visual Studio 2012 (VS 2012) not directly into the form form1.vb. I mean, it have been added into the Form1.Designer.vb, and for that reason I can't find the way to manage it.

(I made the data binding with the DB through the facility "DataGridView Tasks" after creating the connection with the "Add New Data Source" wizard.)

I have the following code into a button "Refresh" in form1.vb (code moved from the "load" sub):

VB
'TODO: This line of code loads data into the 'RFIdSSI_2DataSet._08_AssetMng' table. You can move, or remove it, as needed.
 Me._08_AssetMngTableAdapter.Fill(Me.RFIdSSI_2DataSet._08_AssetMng)


Into the form1.Designer.vb VS2012 added the following:

C#
'grdDataGridView
'
Me.grdDataGridView.AutoGenerateColumns = False
Me.grdDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
Me.grdDataGridView.Columns.AddRange(New System.Windows.Forms.DataGridViewColumn() {Me.IDDataGridViewTextBoxColumn, Me.AssetDataGridViewTextBoxColumn, Me.AssetPosDataGridViewTextBoxColumn, Me.AssetTAGDataGridViewTextBoxColumn, Me.TblTrasponderTagIdDataGridViewTextBoxColumn, Me.ClassIdDataGridViewTextBoxColumn, Me.ClassTypeDataGridViewTextBoxColumn, Me.ColorDataGridViewTextBoxColumn, Me.WingDataGridViewTextBoxColumn, Me.WingCodeDataGridViewTextBoxColumn, Me.FloorDataGridViewTextBoxColumn, Me.RoomIdDataGridViewTextBoxColumn, Me.TblTagAssignedTagIdDataGridViewTextBoxColumn, Me.AssignedDataGridViewCheckBoxColumn, Me.TagDSFIDDataGridViewTextBoxColumn, Me.TagAFIDataGridViewTextBoxColumn, Me.TagEnterDataGridViewTextBoxColumn, Me.TypeImgDataGridViewTextBoxColumn, Me.TypeDescDataGridViewTextBoxColumn, Me.PosRowDataGridViewTextBoxColumn, Me.PosColumnDataGridViewTextBoxColumn})
Me.grdDataGridView.DataSource = Me.AssetMngBindingSource
Me.grdDataGridView.Location = New System.Drawing.Point(12, 396)
Me.grdDataGridView.Name = "grdDataGridView"
Me.grdDataGridView.Size = New System.Drawing.Size(772, 89)
Me.grdDataGridView.TabIndex = 24

Me.AssetMngBindingSource = New System.Windows.Forms.BindingSource(Me.components)
Me.RFIdSSI_2DataSet = New RFIdSSI.RFIdSSI_2DataSet()

Me._08_AssetMngTableAdapter = New RFIdSSI.RFIdSSI_2DataSetTableAdapters._08_AssetMngTableAdapter()

CType(Me.grdDataGridView, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.AssetMngBindingSource, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.RFIdSSI_2DataSet, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()


I've tried to re-bind the data without success, adding into the "Refresh" sub the code extracted from the form1.Designer.vb

The code works fine and load the data correctly, but I have to exit to re-load (refresh) it


Thank in advance
QuestionMessage Closed Pin
13-Nov-13 4:37
Member 1039931913-Nov-13 4:37 
QuestionSaving to DataBase Pin
Member 1038849412-Nov-13 2:14
Member 1038849412-Nov-13 2:14 
AnswerRe: Saving to DataBase Pin
Abhinav S12-Nov-13 2:27
Abhinav S12-Nov-13 2:27 
GeneralRe: Saving to DataBase Pin
Member 1038849412-Nov-13 2:30
Member 1038849412-Nov-13 2:30 
GeneralRe: Saving to DataBase Pin
Member 1038849412-Nov-13 2:34
Member 1038849412-Nov-13 2:34 
AnswerRe: Saving to DataBase Pin
Member 1038849412-Nov-13 2:35
Member 1038849412-Nov-13 2:35 
SuggestionRe: Saving to DataBase Pin
Richard Deeming12-Nov-13 2:59
mveRichard Deeming12-Nov-13 2:59 
QuestionRe: Saving to DataBase Pin
Eddy Vluggen12-Nov-13 9:00
professionalEddy Vluggen12-Nov-13 9:00 
AnswerRe: Saving to DataBase Pin
Richard Deeming12-Nov-13 9:08
mveRichard Deeming12-Nov-13 9:08 
GeneralRe: Saving to DataBase Pin
Eddy Vluggen12-Nov-13 9:09
professionalEddy Vluggen12-Nov-13 9:09 
GeneralRe: Saving to DataBase Pin
Richard Deeming12-Nov-13 9:19
mveRichard Deeming12-Nov-13 9:19 
GeneralRe: Saving to DataBase Pin
Member 1038849412-Nov-13 21:28
Member 1038849412-Nov-13 21:28 
GeneralRe: Saving to DataBase Pin
Richard Deeming13-Nov-13 2:27
mveRichard Deeming13-Nov-13 2:27 
GeneralMessage Closed Pin
13-Nov-13 2:41
Member 1038849413-Nov-13 2:41 
GeneralRe: Saving to DataBase (solved) Pin
Richard Deeming13-Nov-13 2:51
mveRichard Deeming13-Nov-13 2:51 
GeneralRe: Saving to DataBase (solved) Pin
Member 1038849413-Nov-13 3:03
Member 1038849413-Nov-13 3:03 
GeneralRe: Saving to DataBase (solved) Pin
Richard Deeming13-Nov-13 3:13
mveRichard Deeming13-Nov-13 3:13 

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.