Hey, I have a gridview where, i am binding it as follows ::
grdView.DataSource = dsNames;
The datasource 'dsNames' has 10 columns and, I want to only show 2 columns in the grid. how do i do that?
Also, i tried adding the 2 required columns in the designer and set the auto generatecolumns to false. If i do it this way, no data is displayed.
Please let me know how to do binding.
Thanks,
Sri
grdView.DataSource = dsNames;
The datasource 'dsNames' has 10 columns and, I want to only show 2 columns in the grid. how do i do that?
Also, i tried adding the 2 required columns in the designer and set the auto generatecolumns to false. If i do it this way, no data is displayed.
Please let me know how to do binding.
Thanks,
Sri