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

C#

 
GeneralRe: datagridview doesn´t show the datasource Pin
tom_ma6-Apr-14 22:34
tom_ma6-Apr-14 22:34 
GeneralRe: datagridview doesn´t show the datasource Pin
V.6-Apr-14 22:45
professionalV.6-Apr-14 22:45 
GeneralRe: datagridview doesn´t show the datasource Pin
tom_ma7-Apr-14 0:24
tom_ma7-Apr-14 0:24 
GeneralRe: datagridview doesn´t show the datasource Pin
V.7-Apr-14 1:19
professionalV.7-Apr-14 1:19 
GeneralRe: datagridview doesn´t show the datasource Pin
tom_ma7-Apr-14 0:24
tom_ma7-Apr-14 0:24 
AnswerRe: datagridview doesn´t show the datasource Pin
OriginalGriff6-Apr-14 22:27
mveOriginalGriff6-Apr-14 22:27 
GeneralRe: datagridview doesn´t show the datasource Pin
tom_ma6-Apr-14 22:38
tom_ma6-Apr-14 22:38 
GeneralRe: datagridview doesn´t show the datasource Pin
OriginalGriff6-Apr-14 23:00
mveOriginalGriff6-Apr-14 23:00 
Where is seedatagrid being called from?
It's perfectly valid to just set the DataGridView.DataSource to a list of class instances, and the system should (and does) pick out the public properties and display them in columns. I do it all the time, especially for testing, so I know it works without any supporting code.

Try this:
C#
dgv_TraceItems.DataSource = new List<string> { "hello", "goodbye" };
You should get two rows of one column, with values 5 and 7.
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

GeneralRe: datagridview doesn´t show the datasource Pin
tom_ma6-Apr-14 23:08
tom_ma6-Apr-14 23:08 
GeneralRe: datagridview doesn´t show the datasource Pin
OriginalGriff6-Apr-14 23:24
mveOriginalGriff6-Apr-14 23:24 
GeneralRe: datagridview doesn´t show the datasource Pin
tom_ma7-Apr-14 0:14
tom_ma7-Apr-14 0:14 
GeneralRe: datagridview doesn´t show the datasource Pin
OriginalGriff7-Apr-14 0:25
mveOriginalGriff7-Apr-14 0:25 
GeneralRe: datagridview doesn´t show the datasource Pin
tom_ma7-Apr-14 1:38
tom_ma7-Apr-14 1:38 
GeneralRe: datagridview doesn´t show the datasource Pin
OriginalGriff7-Apr-14 1:43
mveOriginalGriff7-Apr-14 1:43 
GeneralRe: datagridview doesn´t show the datasource Pin
tom_ma7-Apr-14 1:55
tom_ma7-Apr-14 1:55 
GeneralRe: datagridview doesn´t show the datasource Pin
OriginalGriff7-Apr-14 2:19
mveOriginalGriff7-Apr-14 2:19 
GeneralRe: datagridview doesn´t show the datasource Pin
tom_ma7-Apr-14 4:04
tom_ma7-Apr-14 4:04 
GeneralRe: datagridview doesn´t show the datasource Pin
OriginalGriff7-Apr-14 4:42
mveOriginalGriff7-Apr-14 4:42 
GeneralRe: datagridview doesn´t show the datasource Pin
tom_ma7-Apr-14 20:32
tom_ma7-Apr-14 20:32 
GeneralRe: datagridview doesn´t show the datasource Pin
OriginalGriff7-Apr-14 21:01
mveOriginalGriff7-Apr-14 21:01 
Questionbutton not disabled Pin
Member 107293186-Apr-14 19:27
Member 107293186-Apr-14 19:27 
AnswerRe: button not disabled Pin
Pete O'Hanlon6-Apr-14 19:53
mvePete O'Hanlon6-Apr-14 19:53 
GeneralRe: button not disabled Pin
Jay Nardev13-Apr-14 7:50
Jay Nardev13-Apr-14 7:50 
GeneralRe: button not disabled Pin
Pete O'Hanlon13-Apr-14 7:57
mvePete O'Hanlon13-Apr-14 7:57 
Questionhow to add all ip address of client to listview when client connected server Pin
Member 107057406-Apr-14 18:15
Member 107057406-Apr-14 18:15 

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.