Click here to Skip to main content
15,895,606 members
Home / Discussions / C#
   

C#

 
GeneralRe: Ntier app Pin
StephenMcAllister18-Oct-04 16:28
StephenMcAllister18-Oct-04 16:28 
GeneralRe: Ntier app Pin
Salil Khedkar19-Oct-04 22:40
Salil Khedkar19-Oct-04 22:40 
GeneralRe: Ntier app Pin
Carl Mercier21-Oct-04 18:50
Carl Mercier21-Oct-04 18:50 
GeneralRe: Ntier app Pin
StephenMcAllister23-Oct-04 7:53
StephenMcAllister23-Oct-04 7:53 
GeneralAdjusting the columns on the datagrid Pin
steve_rm18-Oct-04 5:54
steve_rm18-Oct-04 5:54 
GeneralRe: Adjusting the columns on the datagrid Pin
Heath Stewart18-Oct-04 7:31
protectorHeath Stewart18-Oct-04 7:31 
GeneralRe: Adjusting the columns on the datagrid Pin
steve_rm19-Oct-04 7:44
steve_rm19-Oct-04 7:44 
GeneralRe: Adjusting the columns on the datagrid Pin
Heath Stewart19-Oct-04 7:54
protectorHeath Stewart19-Oct-04 7:54 
The column and table styles should be assigned before you set the DataGrid.DataSource.

If you actually read the documentation for DataGrid.DataSource, you'll see that any IList or IListSource will do. You can assign either a DataSet or DataTable, but I recommend assigning the DataSet to DataGrid.DataSource and the name of the table to DataGrid.DataMember. Finally, make sure that for your DataGridTableStyle you set the MappingName to the DataTable name (if you follow my advice above, this would be the same as the DataGrid.DataMember name, but still works if you assign the DataTable to the DataGrid.DataSource instead). The documentation for the DataGridTableStyle.MappingName describes this, as well as what to assign as the MappingName if you're reflecting against IList or IListSource implementations besides the DataSet and DataTable classes.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralDetecting the enter key Pin
exhaulted18-Oct-04 5:18
exhaulted18-Oct-04 5:18 
GeneralRe: Detecting the enter key Pin
Roger Stewart18-Oct-04 7:28
professionalRoger Stewart18-Oct-04 7:28 
GeneralRe: Detecting the enter key Pin
Heath Stewart18-Oct-04 7:34
protectorHeath Stewart18-Oct-04 7:34 
GeneralRe: Detecting the enter key Pin
Roger Stewart18-Oct-04 9:32
professionalRoger Stewart18-Oct-04 9:32 
GeneralRe: Detecting the enter key Pin
exhaulted18-Oct-04 22:22
exhaulted18-Oct-04 22:22 
Questioncan I create rotatable widgets? Pin
Daniel Tomasini18-Oct-04 5:07
Daniel Tomasini18-Oct-04 5:07 
AnswerRe: can I create rotatable widgets? Pin
Heath Stewart18-Oct-04 7:27
protectorHeath Stewart18-Oct-04 7:27 
GeneralRe: can I create rotatable widgets? Pin
Daniel Tomasini19-Oct-04 3:09
Daniel Tomasini19-Oct-04 3:09 
GeneralRe: can I create rotatable widgets? Pin
Heath Stewart19-Oct-04 5:16
protectorHeath Stewart19-Oct-04 5:16 
QuestionIs using reflection 'cheating'? Pin
Anonymous18-Oct-04 4:05
Anonymous18-Oct-04 4:05 
AnswerRe: Is using reflection 'cheating'? Pin
afinnell18-Oct-04 5:31
afinnell18-Oct-04 5:31 
AnswerRe: Is using reflection 'cheating'? Pin
Steven Campbell18-Oct-04 14:50
Steven Campbell18-Oct-04 14:50 
Generallooking for a user modeling open source written in c# Pin
Pupik36018-Oct-04 2:57
Pupik36018-Oct-04 2:57 
Generaltwo xml doubts Pin
ee9903518-Oct-04 1:26
ee9903518-Oct-04 1:26 
GeneralRe: two xml doubts Pin
Stanciu Vlad18-Oct-04 5:16
Stanciu Vlad18-Oct-04 5:16 
GeneralRe: two xml doubts Pin
Heath Stewart18-Oct-04 7:23
protectorHeath Stewart18-Oct-04 7:23 
QuestionHow to convert VC++ to C# code? Pin
momer18-Oct-04 1:22
momer18-Oct-04 1:22 

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.