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. 3 12005
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.co m
"Andrus" <ko********@hot .eewrote in message
news:u6******** *****@TK2MSFTNG P04.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.
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.
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.co m
"Andrus" <ko********@hot .eewrote in message
news:OH******** ******@TK2MSFTN GP05.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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 filled with data. When
data is removed, the data is deleted as expected, but instead of being
removed, a row is being added to the grid. Can anyone explain why?
Here is sample code to illustrate what I mean.
Thanks in advance
Piet
import wx
|
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 a text box and adding it or
updating data that already exists in the grid. Again I am
using VB .Net in a Smart Device application. Any
direction on this would be a great help.
Thanks,
Brian
|
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 list to datatable.
|
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 gave
me some pointers on some of the control's properties, but I have not
been able to configure it to use another font than the default font
used in the Access 97 wizard.
Could someone tell me where I could find more details and sample
source...
|
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 RegisterArrayDeclaration, but I don't see a quick
tutorial how. Can anyone post sample C# code-behind-only code on how
to do this?
Thanks.
| |
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
|
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 generate 10
rows of data.
2nd time, it maybe only 5 rows. so I need a way to RESET the grid data
every time. how can I do it? by grid_forger()?, then would anyone can
help on
how to use grid_forget()
the sample code as following:
|
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 wise(column wise) and display the fieldwise total in a seperate row or in footer..
for ex .c the sample below..
f1 f2 f3...
r1 2 4
r2 5 3
r3 1 6
|
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, call determined functions, and edit the data already present
What will you need to use the grid? A table with standard markup and an ID to call the script that will turn the table into a grid
Parameters:
tabelaID => id of the table that will...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |