Click here to Skip to main content
15,911,306 members
Home / Discussions / C#
   

C#

 
GeneralRe: Transfer parameter in main method Pin
jason_mf30-Jun-08 23:15
jason_mf30-Jun-08 23:15 
Questiondecimal format in xml serialization Pin
JoZ CaVaLLo30-Jun-08 22:08
JoZ CaVaLLo30-Jun-08 22:08 
QuestionChange windows Time & Date Pin
Mahdi 8216102130-Jun-08 21:59
Mahdi 8216102130-Jun-08 21:59 
AnswerRe: Change windows Time & Date Pin
Simon P Stevens30-Jun-08 22:34
Simon P Stevens30-Jun-08 22:34 
AnswerRe: Change windows Time & Date Pin
PIEBALDconsult1-Jul-08 4:56
mvePIEBALDconsult1-Jul-08 4:56 
Questionbinding data from sql tables to treeview control c#.net? Pin
Ashish Kumar Vyas30-Jun-08 21:57
Ashish Kumar Vyas30-Jun-08 21:57 
QuestionAdding rows to DataGridView programmatically Pin
Desmond Lim30-Jun-08 21:51
Desmond Lim30-Jun-08 21:51 
AnswerRe: Adding rows to DataGridView programmatically Pin
lnkgoeng2-Jul-08 0:55
lnkgoeng2-Jul-08 0:55 
Answer to problem 1
-------------------
1. Add a datagridview to your form.
2. Dont add any column to it

add a quote to retrieve data from the database
1. connectionstring
e.g string conStr="Add the relevent connection to the database"
2. a function to retrieve the data. Create a class called it DataAccess
<code>
using system.data;
using system.data.oleddb;

public class DataAccess
{
  public void Show(string sql, string con, datagridview dt)
  {
    //add logic to retieve record from database     
  }
}
</code>


Then you can call this class to pupulate any datagridview with any number of rows or columns without any modifications. If you want a complete quote let me know (lnkgoeng@webmail.co.za)
QuestionProblem with printing a page foreach listview.items Pin
andredani30-Jun-08 21:48
andredani30-Jun-08 21:48 
AnswerRe: Problem with printing a page foreach listview.items Pin
Christian Graus30-Jun-08 21:58
protectorChristian Graus30-Jun-08 21:58 
GeneralRe: Problem with printing a page foreach listview.items Pin
andredani30-Jun-08 23:07
andredani30-Jun-08 23:07 
Questionabout c#.net Pin
rupmax30-Jun-08 21:39
rupmax30-Jun-08 21:39 
AnswerRe: about c#.net Pin
Christian Graus30-Jun-08 21:55
protectorChristian Graus30-Jun-08 21:55 
QuestionLINQ Pin
arkiboys30-Jun-08 21:23
arkiboys30-Jun-08 21:23 
AnswerRe: LINQ Pin
Christian Graus30-Jun-08 21:57
protectorChristian Graus30-Jun-08 21:57 
AnswerRe: LINQ Pin
Scott Dorman30-Jun-08 22:57
professionalScott Dorman30-Jun-08 22:57 
Questionsimple test Pin
blackjack215030-Jun-08 21:02
blackjack215030-Jun-08 21:02 
AnswerRe: simple test Pin
Christian Graus30-Jun-08 21:56
protectorChristian Graus30-Jun-08 21:56 
AnswerRe: simple test Pin
Scott Dorman30-Jun-08 23:00
professionalScott Dorman30-Jun-08 23:00 
QuestionPropertyGrid Pin
KBou30-Jun-08 20:53
KBou30-Jun-08 20:53 
AnswerRe: PropertyGrid Pin
leppie30-Jun-08 20:55
leppie30-Jun-08 20:55 
QuestionRe: PropertyGrid [modified] Pin
KBou30-Jun-08 21:05
KBou30-Jun-08 21:05 
AnswerRe: PropertyGrid Pin
stancrm30-Jun-08 22:39
stancrm30-Jun-08 22:39 
QuestionRe: PropertyGrid Pin
KBou30-Jun-08 22:49
KBou30-Jun-08 22:49 
AnswerRe: PropertyGrid Pin
leppie1-Jul-08 1:08
leppie1-Jul-08 1:08 

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.