Click here to Skip to main content
15,888,065 members
Home / Discussions / C#
   

C#

 
GeneralRe: Web Services Pin
Brink Fourie15-Nov-09 5:05
Brink Fourie15-Nov-09 5:05 
GeneralRe: Web Services Pin
OriginalGriff15-Nov-09 5:26
mveOriginalGriff15-Nov-09 5:26 
GeneralRe: Web Services Pin
Brink Fourie15-Nov-09 5:36
Brink Fourie15-Nov-09 5:36 
GeneralRe: Web Services Pin
Brink Fourie15-Nov-09 5:36
Brink Fourie15-Nov-09 5:36 
QuestionWindows Form GridView Pin
moody12314-Nov-09 23:09
moody12314-Nov-09 23:09 
AnswerRe: Windows Form GridView Pin
binhvtt14-Nov-09 23:34
binhvtt14-Nov-09 23:34 
GeneralRe: Windows Form GridView Pin
moody12315-Nov-09 0:42
moody12315-Nov-09 0:42 
GeneralRe: Windows Form GridView Pin
binhvtt15-Nov-09 14:54
binhvtt15-Nov-09 14:54 
I don't have time to write full example to you. I extracted some code in my project. Hope that you can get my point. If you have questions, add my skype nick: binh_vu54321
1) Fill the table in DataSet from SqlDataAdapter.
private DataTable dtGetMPNs = new DataTable();
private DataSet dsGetMPNs = new DataSet();

if(dsGetMPNs.Tables.Contains("GetMPNs"))
dsGetMPNs.Tables["GetMPNs"].Clear();
daGetMPNs.Fill(dsGetMPNs,"GetMPNs");

2) Assign DataSource to dataSet. DefaultViewManager
dgvMPNs.DataSource = dsGetMPNs.DefaultViewManager;
dgvMPNs.DataSource = dsGetMPNs.Tables["GetMPNs"];

3) GetChanges
In Save change functions
DataSet dsMyChanges = dsGetMPNs.GetChanges();
if (dsMyChanges != null)
{
for (int i = 0; i < dsMyChanges.Tables["GetMPNs"].Rows.Count; i++)
{

}
}
QuestionDifference B/w 3 types of Lines. Pin
lexical114-Nov-09 21:50
lexical114-Nov-09 21:50 
AnswerRe: Difference B/w 3 types of Lines. Pin
OriginalGriff14-Nov-09 21:56
mveOriginalGriff14-Nov-09 21:56 
GeneralRe: Difference B/w 3 types of Lines. Pin
binhvtt14-Nov-09 23:41
binhvtt14-Nov-09 23:41 
GeneralRe: Difference B/w 3 types of Lines. Pin
lexical115-Nov-09 2:47
lexical115-Nov-09 2:47 
GeneralRe: Difference B/w 3 types of Lines. Pin
binhvtt15-Nov-09 14:59
binhvtt15-Nov-09 14:59 
AnswerRe: don't use CreateGraphics Pin
Luc Pattyn14-Nov-09 23:39
sitebuilderLuc Pattyn14-Nov-09 23:39 
GeneralRe: don't use CreateGraphics Pin
lexical115-Nov-09 2:34
lexical115-Nov-09 2:34 
QuestionRefresh database using c# Pin
tasumisra14-Nov-09 20:02
tasumisra14-Nov-09 20:02 
AnswerRe: Refresh database using c# Pin
Shameel14-Nov-09 22:17
professionalShameel14-Nov-09 22:17 
AnswerRe: Refresh database using c# Pin
Abhishek Sur14-Nov-09 23:34
professionalAbhishek Sur14-Nov-09 23:34 
GeneralRe: Refresh database using c# Pin
binhvtt14-Nov-09 23:44
binhvtt14-Nov-09 23:44 
AnswerRe: Refresh database using c# Pin
Abhishek Sur15-Nov-09 0:14
professionalAbhishek Sur15-Nov-09 0:14 
GeneralRe: Refresh database using c# Pin
tasumisra15-Nov-09 3:23
tasumisra15-Nov-09 3:23 
Questioncopying large tables Pin
hosseinghazanfary14-Nov-09 19:40
hosseinghazanfary14-Nov-09 19:40 
AnswerRe: copying large tables Pin
N a v a n e e t h14-Nov-09 20:23
N a v a n e e t h14-Nov-09 20:23 
GeneralRe: copying large tables Pin
OriginalGriff14-Nov-09 22:01
mveOriginalGriff14-Nov-09 22:01 
GeneralRe: copying large tables Pin
hosseinghazanfary19-Nov-09 3:21
hosseinghazanfary19-Nov-09 3:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.