I have the following DataGridTableSt yle:
DataGridTableSt yle gridTableStyle = new DataGridTableSt yle();
gridTableStyle. MappingName = "myStyle";
DataGridTextBox Column dgsc = new DataGridTextBox Column();
dgsc.MappingNam e = "FirstName" ;
dgsc.HeaderText = "First Name";
dgsc.Width = 30;
dgsc.TextBox.En abled = false;
gridTableStyle. GridColumnStyle s.Add(dgsc);
mygrid.TableSty les.Add(gridTab leStyle);
mygrid.DataSour ce = someDataView;
I can see in the grid for the assigned table that the firstname column
is "FirstName" . That should match. Instead, every row from the
DataSet shows in the grid. Shouldn't only the firstname column
display? What am I doing wrong?
Thanks,
Brett
DataGridTableSt yle gridTableStyle = new DataGridTableSt yle();
gridTableStyle. MappingName = "myStyle";
DataGridTextBox Column dgsc = new DataGridTextBox Column();
dgsc.MappingNam e = "FirstName" ;
dgsc.HeaderText = "First Name";
dgsc.Width = 30;
dgsc.TextBox.En abled = false;
gridTableStyle. GridColumnStyle s.Add(dgsc);
mygrid.TableSty les.Add(gridTab leStyle);
mygrid.DataSour ce = someDataView;
I can see in the grid for the assigned table that the firstname column
is "FirstName" . That should match. Instead, every row from the
DataSet shows in the grid. Shouldn't only the firstname column
display? What am I doing wrong?
Thanks,
Brett
Comment