Hide a column datagrid in windows application
-
Hi friends, how can i hide a column from a datagrid.suppose i use a store procedure having eight columns. i want to hide the primary key column.how can i do that. remember it is a windows application not web. thanks
-
Hi friends, how can i hide a column from a datagrid.suppose i use a store procedure having eight columns. i want to hide the primary key column.how can i do that. remember it is a windows application not web. thanks
if u only want to display data. then u should try using listview control by using that u can easily hide/show the required columns.
-
Hi friends, how can i hide a column from a datagrid.suppose i use a store procedure having eight columns. i want to hide the primary key column.how can i do that. remember it is a windows application not web. thanks
Hi Use below code :
dataGridView1.Columns[0].Visible=false;
I can help you in other fields about DataGridView "freshonline2003@yahoo.com" Bye -
Hi friends, how can i hide a column from a datagrid.suppose i use a store procedure having eight columns. i want to hide the primary key column.how can i do that. remember it is a windows application not web. thanks
define a dataset, a datatable, map all the columns of the datatable while mapping, use mapping type as hidden for the column which you want to hide.
Sr. Software Engineer Irevna, India
-
Hi Use below code :
dataGridView1.Columns[0].Visible=false;
I can help you in other fields about DataGridView "freshonline2003@yahoo.com" Byei am saying about datagrid..not datagridview.
-
Hi friends, how can i hide a column from a datagrid.suppose i use a store procedure having eight columns. i want to hide the primary key column.how can i do that. remember it is a windows application not web. thanks
Test270307 wrote:
i use a store procedure having eight columns. i want to hide the primary key column.how can i do that.
In the stored procedure avoid selecting the column that you don't want to display
printf("Navaneeth!!") www.w3hearts.com