Solved

How to update a GridView using custom LINQ datasource?

Posted on 2010-09-17
2
426 Views
Last Modified: 2013-11-11
I am trying to update a GridView that uses a custom LINQ datasource.  The reason I am using a custom LINQ datasource is because I am querying multiple tables in a database.  

Do I need to use the Updating event of the custom linq datasource?  If so, how do I retrieve the values from the DataGrid?
0
Comment
Question by:markerasmus
2 Comments
 
LVL 29

Accepted Solution

by:
Kumaraswamy R earned 500 total points
ID: 33714529
0
 
LVL 1

Expert Comment

by:amr-it
ID: 33720583
I'm not sure I am understanding what you want to achive, but if you want to refresh the view I think you can use the Update() method of the DataGridView.

http://msdn.microsoft.com/en-us/library/system.windows.forms.control.update.aspx

Cheers
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SSIS Feed MS SQL Server Stored procedure with loop 4 38
Convert Ctime to date time in textfile? 7 35
reading excel file in .net 2 19
How to repeat the data 4 20
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question