473,511 Members | 14,951 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WPF grid sample

In VCSE 2008 B2 I created WPF form, added grid an ran it.
Form does not show grid.

Where to find sample which allows to edit object collection returned by
Linq-SQL in WPF grid ?

Andrus.
Nov 11 '07 #1
3 11997
Andrus,

Well, how did you add your items to the Grid?

The Grid class in WPF is not meant to be an editing grid, like the
DataGridView in Windows Forms. Rather, it is meant to provide layout only
for other components.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Andrus" <ko********@hot.eewrote in message
news:u6*************@TK2MSFTNGP04.phx.gbl...
In VCSE 2008 B2 I created WPF form, added grid an ran it.
Form does not show grid.

Where to find sample which allows to edit object collection returned by
Linq-SQL in WPF grid ?

Andrus.
Nov 11 '07 #2
Nicholas,
Well, how did you add your items to the Grid?
No, I didnt add.
I expect that grid determines columns and rows from data source
automatically.
The Grid class in WPF is not meant to be an editing grid, like the
DataGridView in Windows Forms. Rather, it is meant to provide layout only
for other components.
where to find sample which shows how to edit data (collection returned by
Linq-SQL) in WPF grid ?

Andrus.
Nov 11 '07 #3
Andrus,

As I stated in my original reply, the Grid control is meant for layout
purposes, it's not meant to be an editing control. It doesn't even provide
any visible UI elements of it's own.

You have to do all the work yourself to control the editing of cells,
which is no small feat.

The fact that the data source is LINQ2SQL doesn't matter either. In the
end, you will have a list of items, and it's binding to that which you are
trying to do.

You might want to look into the free WPF Grid offered by XCeed:

http://xceed.com/Grid_WPF_Intro.html
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Andrus" <ko********@hot.eewrote in message
news:OH**************@TK2MSFTNGP05.phx.gbl...
Nicholas,
> Well, how did you add your items to the Grid?

No, I didnt add.
I expect that grid determines columns and rows from data source
automatically.
> The Grid class in WPF is not meant to be an editing grid, like the
DataGridView in Windows Forms. Rather, it is meant to provide layout
only for other components.

where to find sample which shows how to edit data (collection returned by
Linq-SQL) in WPF grid ?

Andrus.
Nov 11 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4598
by: Piet | last post by:
Hello, I have written a small program which dynamically displays data from a data structure in a wx.grid. The grid reacts as expected when the data structure is enlarged: a new row is added and...
6
2890
by: Brian Holbrook | last post by:
I am new to VB .Net. Is there anything close to what a flex grid was in VB 6.0? By this I mean being able to manipulate and add text data that is not in a database. I would be taking data from...
1
2034
by: kk | last post by:
I have 2 issues, please help ! 1st issue : -------------------------------------------------------- Loading Grid ------------ 1) creating new rows in a datatable and adding data a array...
2
3077
by: Feromine | last post by:
Looking around for information on this control, I found a couple of posts and the viewable WZTool80.MDE file, but no documentation regarding how to create or configure it. A hex view of accwiz.dll...
6
2222
by: xenophon | last post by:
I have a grid with checkboxes in it. When a checkbox is un/checked, I want to set a true-false value in an array. Then on PostBack I can work with that array. I know I need to use...
6
2959
by: Sebastian Santacroce | last post by:
How do I get a datetime field from a database to show just time in the datagrid. The default just shows date. Thank you Sebastian
7
2128
by: Ray | last post by:
hi, I have a question about how to use .grid_forget (in python/TK) I need to work on grid repeatly. everytime when a button is pressed, the rows of grid is different. such like, first time, it...
0
925
by: jiaudheen | last post by:
i work on C#,asp.net.. my grid has 10 fields and 25 records. i allowed sorting and paging. some fields holds numeric values(int ,float, double..etc). the task is to add all the values field...
6
7965
by: Romulo NF | last post by:
Greetings again to everyone, Im back to show this grid componenet i´ve developed. With this grid you can show the data like a normal table, remove the rows that you need, add rows, import data,...
0
7349
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7417
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5063
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3219
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3210
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
445
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.