Click here to Skip to main content
15,917,645 members
Home / Discussions / C#
   

C#

 
AnswerRe: Message Box Challenge Pin
Christian Graus8-Mar-09 19:59
protectorChristian Graus8-Mar-09 19:59 
AnswerRe: Message Box Challenge Pin
jaypatel5128-Mar-09 20:41
jaypatel5128-Mar-09 20:41 
AnswerRe: Message Box Challenge Pin
Samuel Cherinet8-Mar-09 21:43
Samuel Cherinet8-Mar-09 21:43 
AnswerRe: Message Box Challenge Pin
Luc Pattyn9-Mar-09 2:51
sitebuilderLuc Pattyn9-Mar-09 2:51 
QuestionHow to change the color of the file name Pin
egpuyos8-Mar-09 18:47
egpuyos8-Mar-09 18:47 
AnswerRe: How to change the color of the file name Pin
Abhijit Jana8-Mar-09 19:12
professionalAbhijit Jana8-Mar-09 19:12 
GeneralRe: How to change the color of the file name Pin
egpuyos8-Mar-09 21:40
egpuyos8-Mar-09 21:40 
AnswerRe: How to change the color of the file name Pin
Christian Graus8-Mar-09 20:00
protectorChristian Graus8-Mar-09 20:00 
GeneralRe: How to change the color of the file name Pin
egpuyos8-Mar-09 21:42
egpuyos8-Mar-09 21:42 
GeneralRe: How to change the color of the file name Pin
Dave Kreskowiak9-Mar-09 4:51
mveDave Kreskowiak9-Mar-09 4:51 
QuestionHow to skip system files and folders? Pin
sumit70348-Mar-09 18:39
sumit70348-Mar-09 18:39 
AnswerRe: How to skip system files and folders? Pin
Christian Graus8-Mar-09 20:01
protectorChristian Graus8-Mar-09 20:01 
GeneralRe: How to skip system files and folders? Pin
sumit70348-Mar-09 20:16
sumit70348-Mar-09 20:16 
GeneralRe: How to skip system files and folders? Pin
_Maxxx_8-Mar-09 20:38
professional_Maxxx_8-Mar-09 20:38 
Questionhow to change text of a textbox in password mode Pin
vinodkrebc8-Mar-09 18:09
vinodkrebc8-Mar-09 18:09 
AnswerRe: how to change text of a textbox in password mode Pin
Christian Graus8-Mar-09 20:02
protectorChristian Graus8-Mar-09 20:02 
AnswerRe: how to change text of a textbox in password mode Pin
jaypatel5128-Mar-09 20:45
jaypatel5128-Mar-09 20:45 
GeneralRe: how to change text of a textbox in password mode Pin
vinodkrebc9-Mar-09 1:58
vinodkrebc9-Mar-09 1:58 
QuestionEditing a datagridview component - windows forms Pin
divinyl8-Mar-09 10:57
divinyl8-Mar-09 10:57 
AnswerRe: Editing a datagridview component - windows forms Pin
Mycroft Holmes8-Mar-09 12:15
professionalMycroft Holmes8-Mar-09 12:15 
AnswerRe: Editing a datagridview component - windows forms Pin
Xmen Real 8-Mar-09 15:28
professional Xmen Real 8-Mar-09 15:28 
AnswerRe: Editing a datagridview component - windows forms Pin
jaypatel5128-Mar-09 20:49
jaypatel5128-Mar-09 20:49 
Dude. ..
Its better not to use a SqlDataReader object. as it locks the connection, and it requires you to keep it open.

You can use SqlDataAdapter and fill the table in datatable. And bind datagridview datasource to that table.


e.g:


SqlConnection cn = new SqlConnection("Bla Bla");
SqlDataAdapter adp = new SqlDataAdapter("Select * from Products",cn);
DataTable dt = new DataTable();
adp.Fill(dt);

datagridview1.DataSource = dt;

The changes you make on gridview cell will automatically be reflected on to the table..
So no worry on that .. .
QuestionReading video feed from Philips SAA7130 chip/MPEG4 using C# Pin
Stephan Johnson8-Mar-09 7:54
Stephan Johnson8-Mar-09 7:54 
QuestionShell Extension for context menu Pin
Monin D.8-Mar-09 7:34
Monin D.8-Mar-09 7:34 
QuestionReading Numeric column in excel as text . Pin
unitecsoft8-Mar-09 7:18
unitecsoft8-Mar-09 7:18 

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.