No announcements
Found 276020 threads
-
4 Votes
Unable to sort DataView after it is sorted by DataGrid
So to summarize, when I set the DataView as the data source for the DataGrid, it automatically bound itself to my DataView's default collection view, a ...Answered | 11 Replies | 5432 Views | Created by _xr280xr_ - Wednesday, May 9, 2012 8:56 PM | Last reply by _xr280xr_ - Thursday, May 10, 2012 7:43 PM -
1 Votes
Does filtering and sorting a dataview affect the underlying datatable?
Calling DataView.ToTable() does not affect the original DataTable.Answered | 3 Replies | 4745 Views | Created by dbdrtso1 - Wednesday, May 5, 2010 2:58 PM | Last reply by David Sceppa - Thursday, May 6, 2010 9:00 PM -
0 Votes
Get datatable from datagrid itemsource without any rowfilter
This has nothing to do with DataGrid/WPF.Answered | 1 Replies | 1878 Views | Created by ysrini - Tuesday, July 9, 2013 2:58 PM | Last reply by Mike Danes - Tuesday, July 9, 2013 3:58 PM -
1 Votes
Convert DataGrid To DataTable
try this public static DataTable DataGridtoDataTable(DataGrid dg) { dg.SelectAllCells(); ...Answered | 3 Replies | 16274 Views | Created by Anatoliy50 - Monday, July 18, 2011 6:35 PM | Last reply by Faztrick - Sunday, February 23, 2014 6:03 AM -
1 Votes
How to bind a datagrid with datatable in wpf ?
If DataGrid is in a Panel (for example) then you could use Panel.DataContext = <dataTable> and the grid would automatically use the Context of its parent ...Answered | 9 Replies | 4358 Views | Created by Amal E S - Monday, May 21, 2012 5:55 AM | Last reply by Sheldon _Xiao - Monday, June 4, 2012 7:02 AM -
0 Votes
Binding DataGrid to empty DataTable
But I can simply set AGC to false and use a foreach to add the grid columns corresponding to the DataTable columns myself.Answered | 8 Replies | 12591 Views | Created by The Dag - Wednesday, September 1, 2010 8:15 AM | Last reply by Shaji Kunjumon - Friday, December 10, 2010 7:34 AM -
0 Votes
DataView master\detail binding
it seems still this issue there. i am also facing same issue when i am creating more than one view for datatable.Answered | 5 Replies | 9530 Views | Created by Sinix - Thursday, April 17, 2008 5:00 AM | Last reply by Siva Kumar J - Thursday, May 31, 2012 8:48 AM -
0 Votes
LINQ to DataTable, DataView, and Updating SQL Server
string s = drc.DataSource.ToString(); DataView dt = drc.DataSource as ...Answered | 1 Replies | 5530 Views | Created by damianrflynn - Monday, November 30, 2009 2:41 AM | Last reply by Haripraghash - Monday, November 30, 2009 5:49 AM -
0 Votes
DataView
After when you bind the datasource of DGV to your DV(dataview), changes would be reflected in both DGV and DV whether you add/remove rows to DV or DGV.Answered | 3 Replies | 4137 Views | Created by Shekhar_m - Sunday, August 7, 2011 12:01 PM | Last reply by Amit Govil (MCC) - Tuesday, August 9, 2011 5:48 AM -
0 Votes
Dataview Column Filtering
I really need a method to choose which columns from a DataTable are shown in a DataGridView by positive selection (i.e., not choosing which columns to hide, but rather which columns to show).Answered | 2 Replies | 8781 Views | Created by nicholas.goodman - Thursday, September 22, 2011 4:38 AM | Last reply by Neddy Ren - Tuesday, September 27, 2011 2:57 AM -
0 Votes
WPF DataGrid with 2D Array
Then your properies will get set directly when you edit the cells in the DataGrid.Answered | 4 Replies | 14101 Views | Created by jfras2009 - Monday, October 27, 2014 6:40 PM | Last reply by Andy ONeill - Tuesday, October 28, 2014 3:28 PM -
0 Votes
Binding Byte[] column from datatable to DataGridTemplateColumn of datagrid in wpf
As i told i have a dataTable created and I am having few records in it.Answered | 4 Replies | 9772 Views | Created by AnujaKJ - Wednesday, February 29, 2012 10:16 AM | Last reply by yAnn1ck - Monday, November 24, 2014 6:41 PM -
7 Votes
How to add controls to DataGrid binded to DataTable without violation MVVM?
For very simple insert. update. delete you can do that fine with a datatable.Answered | 12 Replies | 3208 Views | Created by NiceStepUp - Wednesday, December 16, 2015 3:01 PM | Last reply by Andy ONeill - Friday, December 18, 2015 12:37 PM -
1 Votes
DataGridCellStyle: Set Background of DataGridCell based on value in a Different DataGrid / DataTable
I've linked it to the DataTable in the View Model using a multibinding in the style datatrigger.Answered | 2 Replies | 723 Views | Created by kjhkljhkjhghgfdfggkhj - Wednesday, March 11, 2015 1:40 PM | Last reply by kjhkljhkjhghgfdfggkhj - Thursday, March 12, 2015 8:15 AM -
3 Votes
wpf DataGrid
You could get a reference to the visual container for a specific cell in your DataTable and change the background colour of this one.Answered | 7 Replies | 673 Views | Created by elijah kim - Thursday, February 11, 2016 9:57 AM | Last reply by elijah kim - Friday, February 12, 2016 2:53 AM -
0 Votes
Binding DataGrid with DataTable
Datatable as ...Answered | 3 Replies | 917 Views | Created by swivan - Tuesday, April 9, 2013 2:52 AM | Last reply by Krishnav - Wednesday, April 10, 2013 2:00 PM -
0 Votes
Problem to Datagrid
I want the detailed steps to create entity framework model, to create the datagrid.Answered | 3 Replies | 409 Views | Created by Jackson_1990 - Saturday, March 12, 2016 4:29 AM | Last reply by Magnus (MM8) - Monday, March 14, 2016 8:24 PM -
2 Votes
How to add rows to datagrid using xaml?
<DataGrid AutoGenerateColumns="False"> <DataGrid.Columns> ...Answered | 4 Replies | 10137 Views | Created by Jason2726 - Saturday, November 30, 2013 10:00 AM | Last reply by Khanna Gaurav - Saturday, November 30, 2013 7:15 PM -
1 Votes
When bind DataTable to DataGrid , DataGrid doesn't update its layout while the columns of DataTable are changed.
Hi Ethankie, We bind the DataTable to DataGrid, ItemSource will handle the Item changing, but it cannot do for columns changing.Answered | 5 Replies | 4081 Views | Created by Ethankie - Monday, March 15, 2010 7:05 AM | Last reply by Ethankie - Monday, March 22, 2010 8:35 AM -
0 Votes
querying datatable.......
Hi Ricky, You can use either DataView or DefaultView.RowFilter to query data from a DataTable according to user requirements.Answered | 3 Replies | 69699 Views | Created by ricky anderson - Tuesday, June 29, 2010 5:45 PM | Last reply by Chandramohan Palanisamy - Thursday, July 1, 2010 12:20 PM - Items 1 to 20 of 276020 Next ›
No announcements