DataGrid ו -DataView

HaRmosh

New member
DataGrid ו -DataView

נניח ויש לי טבלה שיושבת במשתנה מסוג DataTable, ואני רוצה להציג אותה בעזרת DataGrid. הבעיה היא, שאני רוצה לשנות את שמות העמודות המוצגות ב-DataGrid. האם הדבר נעשה ע"י DataView ? ואם כן, איך אני בעצם קובע את השמות החדשים ? תודה.
 

gilad g

New member
הדבר נעשה בעזרת TableStyles

פרטים, איך לא, ב-MSDN או בגוגל
 

ppl1

New member
לדוגמא

dim tableStyle as new dataGridTableStyle tableStyle.DataGrid=DataGrid1 (DataGrid1.TableStyles.Add(tablestyle dim col1 as new DataGridTextBoxColumn "col1.headerText="ColName
 
למעלה