Click here to Skip to main content
15,909,205 members
Home / Discussions / C#
   

C#

 
AnswerRe: Best way to store MASSIVE amounts of data? Pin
Garth J Lancaster10-Oct-13 17:09
professionalGarth J Lancaster10-Oct-13 17:09 
AnswerRe: Best way to store MASSIVE amounts of data? Pin
s_magus10-Oct-13 18:53
s_magus10-Oct-13 18:53 
AnswerRe: Best way to store MASSIVE amounts of data? Pin
jschell11-Oct-13 9:28
jschell11-Oct-13 9:28 
AnswerRe: Best way to store MASSIVE amounts of data? Pin
Ennis Ray Lynch, Jr.11-Oct-13 9:45
Ennis Ray Lynch, Jr.11-Oct-13 9:45 
QuestionC# Code generation .net 4.5 Pin
no_time10-Oct-13 9:08
no_time10-Oct-13 9:08 
AnswerRe: C# Code generation .net 4.5 Pin
Richard Andrew x6410-Oct-13 9:50
professionalRichard Andrew x6410-Oct-13 9:50 
AnswerRe: C# Code generation .net 4.5 Pin
Homero Rivera10-Oct-13 12:53
Homero Rivera10-Oct-13 12:53 
AnswerRe: C# Code generation .net 4.5 Pin
Keld Ølykke10-Oct-13 22:04
Keld Ølykke10-Oct-13 22:04 
Questionhow to restrict a method call only once Pin
srinimuk9-Oct-13 22:32
srinimuk9-Oct-13 22:32 
QuestionRe: how to restrict a method call only once Pin
Richard MacCutchan9-Oct-13 22:53
mveRichard MacCutchan9-Oct-13 22:53 
AnswerRe: how to restrict a method call only once Pin
srinimuk9-Oct-13 22:55
srinimuk9-Oct-13 22:55 
GeneralRe: how to restrict a method call only once Pin
Richard MacCutchan9-Oct-13 23:00
mveRichard MacCutchan9-Oct-13 23:00 
GeneralRe: how to restrict a method call only once Pin
Pete O'Hanlon9-Oct-13 23:07
mvePete O'Hanlon9-Oct-13 23:07 
GeneralRe: how to restrict a method call only once Pin
srinimuk9-Oct-13 23:25
srinimuk9-Oct-13 23:25 
GeneralRe: how to restrict a method call only once Pin
Simon_Whale9-Oct-13 23:37
Simon_Whale9-Oct-13 23:37 
Questiondata grid view Pin
Kawshik_itbd9-Oct-13 19:13
Kawshik_itbd9-Oct-13 19:13 
AnswerRe: data grid view Pin
vonb9-Oct-13 20:00
vonb9-Oct-13 20:00 
GeneralRe: data grid view Pin
Kawshik_itbd9-Oct-13 20:10
Kawshik_itbd9-Oct-13 20:10 
GeneralRe: data grid view Pin
vonb9-Oct-13 20:18
vonb9-Oct-13 20:18 
GeneralRe: data grid view Pin
Kawshik_itbd9-Oct-13 20:51
Kawshik_itbd9-Oct-13 20:51 
two row in my data table it shows only last row
C#
String sql = "select Name,Gender,Course1,Course2 from Info ";
           DataTable t = DataAccess.GetDataTable(sql);
           for (int i = 0; i <t.Rows.Count; i++)
           {
               dataGridView1.Rows[dataGridView1.Rows.Count - 1].Cells["Column1"].Value =t.Rows[i]["Name"] ;
               dataGridView1.Rows[dataGridView1.Rows.Count - 1].Cells["Column2"].Value =t.Rows[i]["Gender"] ;
               dataGridView1.Rows[dataGridView1.Rows.Count - 1].Cells["Column3"].Value =t.Rows[i]["Course1"] ;
               dataGridView1.Rows[dataGridView1.Rows.Count - 1].Cells["Column4"].Value = t.Rows[i]["Course2"];

           }

how i show all the row in gridview plz solve this prob Frown | :(
GeneralRe: data grid view Pin
Freak309-Oct-13 20:56
Freak309-Oct-13 20:56 
GeneralRe: data grid view Pin
Kawshik_itbd9-Oct-13 21:14
Kawshik_itbd9-Oct-13 21:14 
GeneralRe: data grid view Pin
sanket16410-Oct-13 0:45
sanket16410-Oct-13 0:45 
GeneralRe: data grid view Pin
Kawshik_itbd19-Oct-13 19:13
Kawshik_itbd19-Oct-13 19:13 
AnswerRe: data grid view Pin
Richard MacCutchan9-Oct-13 21:23
mveRichard MacCutchan9-Oct-13 21:23 

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.