Wrox Programmer Forums
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 19th, 2006, 03:45 AM
Authorized User
 
Join Date: Nov 2006
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default DataGrid

Hi
I am using datagrid. I want when i change my grid value/data, that affects my database, my database too updated when i leave my cell in datagrid.

or

I want to make datagrid readonly propery true. then when user double click on any cell a textbox appear at that cell then user enters it's new value. when user leave that cell/textbox then data is updated to that cell as well as database too.

How is it possible. Give some Help with code & instruction too.

Thanks

Thanks and Regards
Kumar Ashish
9350789189
__________________
Thanks
Kumar Ashish
[email protected]
 
Old December 20th, 2006, 08:42 AM
Registered User
 
Join Date: Dec 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

use a data adapter and update it AFTER you've entered the changes


dataSet1.Clear();
dataAdapter1.Update(dataSet1.myTable);
dataGrid1.DataSource = dataSet1.myTable.Table;

because you've sent no code i don't know where you've got to so that's about as much help as i can give right now


When **** becomes valuable the poor will be born without *******s.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom paging in Datagrid with datagrid page count madhusrp ASP.NET 1.0 and 1.1 Professional 12 June 2nd, 2008 01:15 PM
User COntrol Datagrid inside datagrid rodmcleay ASP.NET 1.0 and 1.1 Professional 3 April 14th, 2007 10:11 AM
Creating DataGrid In Repeater/DataGrid liduwan ASP.NET 1.0 and 1.1 Professional 9 March 6th, 2007 03:31 PM
datagrid ajaidass ADO.NET 2 March 1st, 2007 05:36 PM
Need help regarding datagrid ngsharmila .NET Framework 1.x 1 February 1st, 2006 12:55 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.