VS 2010 Get Value From Silverlight Datagrid

Sep 9, 2010

I have data bound to the silverlight 4 datagrid and now I want to grab the value of column 0, row 0. How do I do this? I can't find an example anywhere and this should be so simple.

View 1 Replies


ADVERTISEMENT

VS 2010 - Silverlight Datagrid - Doesn't Display The New Data

Sep 22, 2010

I have a SQL stored procedure that I bind to a Silverlight Datagrid. That works ok, the problem is when I use the same stored procedure to bind a different dataset to the same grid, it doesn't display the new data, only empty columns from the last dataset that was bound. What is going on here? I tried to set the grid = Nothing and I tried using Datagrid1.columns.clear() but that didn't work.

View 3 Replies

C# - SilverLight Datagrid Refresh?

Jan 18, 2011

I have a Silverlight Datagrid who's DataSource I refresh every 5 seconds.I would like when the grid refreshes, for the focus to be on the last row, not the first.I have tried setting the SelectedIndex property of the grid to be the last row, but it did not work.

The details:I am binding the DataGrid to an ObservalbleList(Of MyObject) property on it's ViewModel, and the SelectedIndex is also a property on the ViewModel. Both properties raise the property changed event (able to witness this working by seeing the DataGrids DataSource clearly changing, but the SelectedIndex is never set.I have read reports that setting the SelectedIndex on a DataGrid is a known issue, but have not found a work around.

View 1 Replies

Export Silverlight Datagrid To Excel Using COM Object

May 4, 2012

I have a datagrid on a silverlight 4 application that I am trying to export to excel by calling the COM component for Excel in silverlight. It keeps error-ing out and tells me that the functionality is not supported. I can't quite figure out what is wrong and believe my code is solid, obviously not though.[code]

View 1 Replies

.net - Silverlight Datagrid Binding With Object With A List Property?

Oct 27, 2011

I'm having trouble with some Silverlight functionality. My goal is to get some data from the database and display it in my grid. Sounds simple, however, there are 7 columns that are always going to be there.
The rest of the columns depends on the account. There could be 2 (called Actions) associated with a certain account, compared to another account that could have 5, and the action names can be completely different.
I have successfully been able to return a list of all the possible actions for the given account, and then adding the columns to the grid in the code bihind(VB), and I can bind my data to the grid for all the columns that are already known. The way I store the item's actions, is a Property of type List. My problem is finding a way to iterate through the actions list of the Item object in order to bind those actions to the grid.

View 1 Replies

Port WinForms To Silverlight 2 Or Silverlight 3

Mar 19, 2009

I have a LOB app written in VB.NET with a WinForms front-end and SQL back-end. After many months weighing up how to get onto the Web, I decided last month to use Silverlight 2. Now, Silverlight 3 Beta is out, but there is no end-user runtime.

Does anyone know when the runtime will be available for deployment of SL 3 apps onto client sites?
My dev timeline is about 3 months: should I persist with SL 2 and then u/g to SL3, or jump straight in to SL3?

View 5 Replies

Build 64-bit Applications With Silverlight And WPF Using Visual Studio 2010?

May 13, 2010

I would like to convert a VB.NET 64-bit desktop application to a desktop WPF application and also to web-based Silverlight application. Can you write 64-bit applications using WPF or Silverlight using
VS 2010?

If not, can you write 32-bit WPF and Silverlight programs that act as the presentation managers that interface with the user and have them use 64-bit class libraries? Or do all modules have to be either 32-bit or 64-bit?

View 3 Replies

Silverlight Version And Visual Studio 2008 And 2010?

Aug 31, 2010

I tried to install Microsoft Silverlight 2 but fail - fatal operation however I managed to install Silverlight 3 for Visual Studio 2008. Do you think I need to install Silverlight 2 as well because it clearly to see that Silverlight 3 is a latest version. Please response. Secondly for Visual Studio 2010 I managed to install very easily with Silverlight 4. There is no problem at all. I think, I more likely in VS 2010 Professional. But I have to keep this together (VS 2008 and VS 2010) because I still need to develop certain program. Can I maintain both of this version together?

Website: GuidedMissileDesign.comWebsite: GuidedMissileDesign.com

View 4 Replies

VS 2010 Add Value Selected Row Datagrid?

Apr 2, 2011

how to add value to selected row at datagridview control. hire my code to display and add row at datagrid :

vb.net
Public Class Form2
Dim dt As New DataTable("view")

[Code].....

View 3 Replies

VS 2010 DataGrid & DataTable?

Mar 17, 2011

I have a DataGrid that a user is sorting, problem is that the sorted results are not being updated in my DataTable (which makes another function fail later). I have tried calling AcceptChanges() after the sort is done, but that isn't updating the DataTable. dtMessage.AcceptChanges()How can I have the DataTable updated after the sort to diplay what is displayed in the DataGrid ?

View 2 Replies

VS 2010 Datagrid As RTD Client?

Nov 15, 2011

I'm quite not so familiar with vb.net. so please bare with my query.

does vb.net support RTD function?can the datagrid be used as RTD client?

there is an app with RTD server and I'm presently using excel as RTD client but wish to move out of excel.

View 3 Replies

VS 2010 MySQL - How To Use The Datagrid

Jul 6, 2010

I'm used to use the Listview, but need/want to use the datagrid. The problem is that I have never used the datagrid, so don't know how to import the data from the mySQL-database. I'm loading the data directly from the database, without any dataset.The code I use:

vb.net
Try
mysqlConn.Open()
Dim mysqlComm As New MySqlCommand(strBeslagdataComm, mysqlConn)

[code]....

View 2 Replies

VS 2010 Using A Datagrid For Calculation?

Jun 7, 2012

I was thinking of using a datagrid for calculation. Lets say I want to order several items from a supplier. I just fill up the details row by row, insert the quantity and the price for each. For each row, there will be a subtotal (multiplying quantity by price) and the end it should give the total. Can we achieve using data grid or is there another way to proceed?

View 2 Replies

Put A Caption At Top Of A Datagrid In Express 2010?

Mar 18, 2012

Is it possible to put a caption at the top of a datagrid in VB Express 2010? I have no problems with rows and columns, but see nothing having to do with captions in datagrid properties.

View 6 Replies

VS 2010 - Adding Values To DataGrid Row?

Sep 25, 2011

I have a Datagrid with 5 columns, one of those columns is the only one to have fixed values.Let's put this in a simple way, that column (lets name it column A) contains rows with values from one to ten.With an API call I get some information, lets say I got this:

1 - Andrew - 1.8
8 - Peter - 2.8

Something like this.The first number is equal to the value on the column A, the other two are name and height. I will note receive all the values (one to ten) with call or full information relating to all the columns.How can I assign the information I receive to the proper row based on one of the value I get with the call? Another thing, I will have to create a lot of rows, do I need to add them row by row?

View 8 Replies

VS 2010 - Any Way To Filter DataGrid Using ComboBox?

Nov 6, 2011

Kinda new to working with wpf apps (and vb.net). Looking for a way to filter a datagrid using a combobox (to select the field that the user wishes to search) textbox (to input search terms for specific records). The datagrid loads fine as does the combo containing the fields, however my filter simply does not work.

Code for loading data (works fine)
Dim obj = Me._dataManager.Collections.ReturnCollectionByID(tableSelectionCombo.SelectedItem.TableID)
Me.DataGrid.ItemsSource = obj
obj.Load(New DataManagementDataRequest(Nothing, Nothing))

Code for filtering (not working)
If Me.searchTxt.Text IsNot Nothing Then
obj.filter = selectFieldCombo.SelectedItem.ToString Like searchTxt.Text.ToString
Else
obj.filter = ""
End If

View 2 Replies

VS 2010 - Datagrid - Delete Only The Selected Row

Jan 25, 2010

i have a problem with deleting certain information on my datagrid [Code] and this clears my whole grid, but i want it to delete only the selected row, what would the code be?

View 2 Replies

VS 2010 - Datagrid And Sql - Change The Value In The Cell

Apr 19, 2010

[Code]...

The problem is when I change the value in the cell 2, it didn't "refresh" the cell 4. I think I've a problem on the event "valuechange" but I dont know why

View 2 Replies

VS 2010 - DataGrid Date Picker

Dec 16, 2011

I've been asked to add in some functionality to an existing project.On the main form is an unbound DataGridView. I've been asked to add in a column for a date. Easy enough to add in the column, however I would like to make it easier on the users & have a date picker in the column instead of having it as a free text field & then have to apply constraints to ensure I get the date in the correct format.I've not been able to find anything on this in the usual places & am hoping someone on the forum might have some ideas I could try ?

View 3 Replies

VS 2010 - Datagrid Print New Page

Jun 7, 2012

[Code] I can output the above codes, the way I want. but 34 I could not cross the line and then the other page. After 34 lines of each page I want the atlas. 1 through 5 is going to be a between 6 and 8 between the columns, the columns to the right-based format, would like to have the money.

View 13 Replies

VS 2010 - Datagrid Text Box Search

Jan 13, 2012

I have a text box setup to filter a datagrid. Work just fine, but if I search for something that is not there (empty results) it comes back with an error
"Object reference not set to an instance of an object." on the bolded line. How to fix that error?

[code]...

View 2 Replies

VS 2010 - How To Print Contents Of DataGrid

Jul 2, 2011

How to easily print the contents of a datagrid. I have searched and found some examples, but cant get any working in vb2010.

View 3 Replies

VS 2010 : Adding A Checkbox To Datagrid?

Mar 25, 2012

objdataAdapter.SelectCommand = New SqlCommand()
objdataAdapter.SelectCommand.Connection = objconnection
objdataAdapter.SelectCommand.CommandText = "Select SerialNumber, EmailAddress, Results FROM Email WHERE SerialNumber='" & txtCriteria.Text & "'"

[code]....

What I want to do is for every row of data in the datagridview, i want to add a column for checkbox. The checkbox will be enabled or disabled based on the value found in the field results. The first time I am pressing the button, it works fine. But the second time i query, it keeps adding another checkbox to the same row. Even for the nth time. Everytime i press the button, a checkbox is added. I just want one checkbox every time i query the dataset.

View 2 Replies

VS 2010 : Case Sensitivity When Looking For A Value In Datagrid?

Jun 7, 2012

I am doing a search to look for a value that corresponds in my datagridview. But the problem is it is being case sensitive. Is there a way to disable that? The code I am using is below.

Supplier_List.DataGridView1.Rows(i).Cells(0).Value.contains(txtSupplier.Text)
Supplier_List.DataGridView1.Rows(i).Selected = True

View 4 Replies

VS 2010 Calculated Fields In A Datagrid?

Feb 17, 2011

My program is databound to an access 2007 database. I have a datagridview showing rows as part of my screen and the other part of my screen is texboxes bound to a different table.What I currently have:

1. Date in textbox from one table

2. Age in Datagridview column from another table

I need help with having a calculated date column in the datagridview that will be the textbox date + age (in days) in the datagrid column. I would also need this column to store in my database like any other field also. So if I typed in 2/17/11 into the textbox, and I typed in 2 in the age field, the calculated field would display and store 2/19/2011 in my datagrid and database. My dataset designer won't let me add a date to a string so I'm completely lost. A query calculates it easy in access but when I load the access query in my dataset it doesn't calculate anymore.

View 4 Replies

VS 2010 Caluclated Fields In A Datagrid?

Nov 2, 2009

VS 2010 [RESOLVED] Caluclated Fields in a Datagrid

View 8 Replies

VS 2010 Datagrid Row/Column Location?

Apr 3, 2011

How to move in a datagrid object. which of the column 1 and row 1 I want to move to the row 1 and column 3.

View 3 Replies

VS 2010 Put Datagrid Items In Database?

Oct 13, 2011

I have a datagrid and has items of quantity, product, desc etc is it possible that i will get all the items in my datagrid and put it all in my database im thinking of using the datatable or dataset.

View 35 Replies

VS 2010 Reading Row Data From Datagrid?

May 19, 2011

I have a datagrid which I have manually added columns to and adding rows at runtime (code I am using below if that helps in anyway). When that row is sellected I wish to get the data from different columns.

I'm adding to the grid:

Dim dgvRow As New DataGridViewRow
Dim dgvCell As DataGridViewCell
dgvCell = New DataGridViewTextBoxCell()

[Code]......

View 8 Replies

VS 2010 Resizing Datagrid Properties

Jan 14, 2011

I have a datagrid and load data from a database in and can't find thesolution for a couple of propblems..

1) The columns from the DB is loaded in to the datagrid but the width of each column is very small and needs resizing to view all data everytime it loads. Can I programmically make the colums show wider annd fill the datagrid?

2) I load the columns using SELECT col1,col2,col3 from table; then load that in to the datagrid. col1 is a primary key so has to be loaded as I perform an update of edited data at the end. Can I somehow hide col1 so it does not show in the datagrid?

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved