Click here to Skip to main content
15,903,012 members
Home / Discussions / C#
   

C#

 
AnswerRe: FolderBrowseDialog Pin
Stefan Troschuetz29-Jul-06 6:41
Stefan Troschuetz29-Jul-06 6:41 
GeneralRe: FolderBrowseDialog Pin
AB777130-Jul-06 18:13
AB777130-Jul-06 18:13 
GeneralRe: FolderBrowseDialog Pin
AB777130-Jul-06 18:32
AB777130-Jul-06 18:32 
QuestionMoving app window with FormBorderStyle set to None Pin
QzRz29-Jul-06 1:36
QzRz29-Jul-06 1:36 
AnswerRe: Moving app window with FormBorderStyle set to None Pin
Ravi Bhavnani29-Jul-06 2:02
professionalRavi Bhavnani29-Jul-06 2:02 
AnswerRe: Moving app window with FormBorderStyle set to None Pin
AB777129-Jul-06 2:07
AB777129-Jul-06 2:07 
Questionhow to save image to Database with Datarow ? Pin
hdv21228-Jul-06 23:56
hdv21228-Jul-06 23:56 
QuestionHow to avoid duplicate entries in DataTable. Pin
VenkataRamana.Gali28-Jul-06 23:22
VenkataRamana.Gali28-Jul-06 23:22 
Hi

i am using .NET 1.1.

I am populating some data in DataTable using StoredProcedure.

DataTable dt = new DataTable();
DataRow dr;
DataSet ds = GetDataFromSP();
for (int k=0;k{
dr = dt.NewRow();
dr[0] = int.Parse(ds.Tables[0].Rows[k]["ID"].ToString());
dr[1] = ds.Tables[0].Rows[k]["COL1"].ToString()
dr[2] = ds.Tables[0].Rows[k]["COL2"].ToString()
dt.Rows.Add(dr);
}
//Binding to Grid using dt.

In this DataTable(dt) with same primary key multiple rows are returning by SP.

i want to check DataTable weather with this primary key is there any dupliate entry. if entry exists in DataTable, avoid the adding into the dt.

how to do this?
any sounds appriciated. awaiting for response.




regards
GV Ramana

QuestionExport columns from datagridview to Excel Pin
simsen28-Jul-06 22:26
simsen28-Jul-06 22:26 
AnswerRe: Export columns from datagridview to Excel Pin
simsen29-Jul-06 7:17
simsen29-Jul-06 7:17 
QuestionC# code for mobile agent Pin
Shah Khalid28-Jul-06 22:10
Shah Khalid28-Jul-06 22:10 
Questionadding installation key in setup project Pin
Shah Khalid28-Jul-06 22:00
Shah Khalid28-Jul-06 22:00 
QuestionCan an instance return a value? Pin
Mairaaj Khan28-Jul-06 21:48
professionalMairaaj Khan28-Jul-06 21:48 
AnswerRe: Can an instance return a value? Pin
stancrm28-Jul-06 22:24
stancrm28-Jul-06 22:24 
GeneralRe: Can an instance return a value? Pin
Mairaaj Khan28-Jul-06 23:19
professionalMairaaj Khan28-Jul-06 23:19 
GeneralRe: Can an instance return a value? Pin
mav.northwind28-Jul-06 23:24
mav.northwind28-Jul-06 23:24 
GeneralRe: Can an instance return a value? Pin
Mairaaj Khan29-Jul-06 0:29
professionalMairaaj Khan29-Jul-06 0:29 
GeneralRe: Can an instance return a value? Pin
mav.northwind29-Jul-06 3:23
mav.northwind29-Jul-06 3:23 
GeneralRe: Can an instance return a value? Pin
Mairaaj Khan30-Jul-06 22:25
professionalMairaaj Khan30-Jul-06 22:25 
GeneralRe: Can an instance return a value? Pin
Mairaaj Khan31-Jul-06 22:13
professionalMairaaj Khan31-Jul-06 22:13 
GeneralRe: Can an instance return a value? Pin
Colin Angus Mackay29-Jul-06 8:58
Colin Angus Mackay29-Jul-06 8:58 
GeneralRe: Can an instance return a value? Pin
Mairaaj Khan30-Jul-06 22:28
professionalMairaaj Khan30-Jul-06 22:28 
QuestionProblem With TabControl Pin
maaran28-Jul-06 21:40
maaran28-Jul-06 21:40 
QuestionUploading to VSS Pin
AnnnS28-Jul-06 20:45
AnnnS28-Jul-06 20:45 
AnswerRe: Uploading to VSS Pin
leppie28-Jul-06 23:12
leppie28-Jul-06 23:12 

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.