Update header column through related details from datagrid - wpfdatagrid

How to update header column through the related details from datagrid in wpf?
//your code here

Related

Click on one DataField in gridview will open a new grid view

My Target:
I have one gridview on the asp page now the first column is showing some numbers (which is primary key in SQL)
Now I want if someone clicks on any of the number he should be navigated to a new page where he can edit the fields connected to the number clicked.
Note: in the first grid view I have not selected all the columns from sql but in the editing page i want most of the columns from database.
Broad ask. Guess you added right tag asp.net but you mentioned asp page.
Add hyperlink in the id column of gridview to navigate to edit page with Primary key value as querystring.
In pageload of editing page, read the querystring & query all the Columns of record you need using id, edit & update the DB. At the end response.redirect to grid page.

Delete master record and make it available for old entry only, not new one

I am having a problem as described below.
I am developing a form which contains vb.net datagrid with several columns.
Few columns are of comboboxcolumn type which are bound to datasource of SQL Database.
Now when new entry starts, user selects data from different cell of combobox and so on.
Then all rows data from grid is saved to database.
Now if I delete a master record of one table which is the datasource of one column of datagrid,
When I open existing entry list, that particular cell is shown empty because its master data is not available in table.
How do I show deleted master data in existing entry, but not in the new entry?(Obviously it will not be available for new entry)
I would not delete the data... I would have a boolean column for redundancy. Then instead of deleting mark column as redundant = true.
The datagrid I would have with an item and edit template. In the item template would have a label which will be bound to record value. In edit template would have a combobox which would be bound to datasource where redundant = false.

Merging of cells in Silverlight DataGrid

I need a datagrid control like below.
I want to implement cell merge like functionality in a datagrid in silverlight. I have some rows which display a single value and some rows return all the values for all columns.So How to implement something like colspan for a particular row in datagrid ?
Like this
Please see the link
http://social.msdn.microsoft.com/Forums/en-US/silverlightcontrols/thread/79a7b371-738a-43e5-a3e3-7a26c946aa46

Display Headers in Infragistics ULTRAGRID when no data in table

I am fetching data in from an SQL table using a DataSet in VB.Net. When there is data in table, it displays the data properly in the grid, but when there is no data in the table, it only shows the UltraGrid's basic view.
How can I display the column names of the table as headings of the UltraGrid even when there is no data in Table?
Thanks for the reply, but I think the problem that JD is having is a bit different from mine - in my application the data got fetched properly from SQL Server. My problem is that when there is no data in the table, I want to display the columns of the table as the headings of the grid with 0 rows. This is not happening.
It just shows a message box saying that no data is found, and the UltraGrid shows as it does by default in the application.
This is discussed in this Infragistics forum thread.
Do you know what the headers of the columns will be or is it dynamic based on the data in the table? If you know beforehand you can create the columns with the appropriate headers in an empty dataset and assign that to the grids datasource.
I notice this same behavior when I manually create a datatable and assign it as the grid's datasource. If the data table is empty, all the column header info that was previously set on the grid is lost. My solution to this was to never actually give it an empty table, if I have no rows in my table, at least have all the columns defined.
DataTable table = new DataTable("fooTable");
table.Columns.Add("fooCol1", typeof(long));
table.Columns.Add("fooCol2", typeof(string));
table.Columns.Add("fooCol3", typeof(bool));
myUltraGrid.DataSource = table;
By never setting the grid to an empty table, you keep your header info.

VB.NET and Crystal Reports - datasets and more

I'm not sure if this is even possible but here goes:
Currently I have a crystal report with a few header fields and detail lines ( of course)
I pass a dataset containing a header datatable and a detail datatable. Everything works as expected... as long as I have only 1 record in the header table. What I would like to be able to do is somehow make the report "repeat" if there are multiple records in the header datatable. Is this possible? Any ideas?
I believe the report header will only appear once. You could insert a group, and bind the group to the data in the header datatable, then remove the default header and footer rows that are added when you add a table to a report. This might mean adding the data in your detail table as a sub-report, and putting the sub-report in detail area.