Click here to Skip to main content
15,908,264 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
can i get a hidden column value from a datagridview during runtime in windows application
Posted

yes you can do it by casting data gridview data source into its original data type.
then you can access all public attribute in case of List and
all the column if you cast Grid DataView into DataTable

if(datagridview.DataSource as DataTable){

    DataTable dt = datagridview.DataSource as DataTable;
   // Now You can access all the Column of data Table.
}
 
Share this answer
 
v2
Comments
Sharon 2 15-Apr-13 2:27am    
i retrive the value from another page grid to another page grid
Sm.Abdullah 15-Apr-13 3:33am    
you want ? or you have done.. ?
yes, you can get hidden column values in Server side code
 
Share this answer
 
dt.Rows(0)("COLUMN NAME").ToString.Trim
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900