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.
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.
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.
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]
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.
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?
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?
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?
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 ?
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)
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?
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.
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?
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
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?
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
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 ?
[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.
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?
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.
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.
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.
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.
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()
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?