removing the empty column in a datagrid
-
HI ALL In my asp application i have a data grid, can i hide the empty columns in run time. like i am accessing the values from same table for the 2 categories ie in case of software there is data in key skill column the other two fields process and typing speed are empty, same way for BPO category only typing speed data is there other two fields key skill and process is empty. so i just want the columns which is having data Pl help Regards
Prakash Mishra(Banglore,India)
-
HI ALL In my asp application i have a data grid, can i hide the empty columns in run time. like i am accessing the values from same table for the 2 categories ie in case of software there is data in key skill column the other two fields process and typing speed are empty, same way for BPO category only typing speed data is there other two fields key skill and process is empty. so i just want the columns which is having data Pl help Regards
Prakash Mishra(Banglore,India)
R u taking one column or three column to display data in datagrid? Best Regard Pathan
---------------------------------------------------
-
R u taking one column or three column to display data in datagrid? Best Regard Pathan
---------------------------------------------------
as i am displaying all catories in same datagrid i need to take all columns. I only want to hide it if its empty
Prakash Mishra(Banglore,India)
-
as i am displaying all catories in same datagrid i need to take all columns. I only want to hide it if its empty
Prakash Mishra(Banglore,India)
Implement following logic: dgrd.Columns(i).Visible = False Note: i represents column index
Regards, Vipul Mehta Sr. Software Engineer Accenture Services Pvt Ltd
-
Implement following logic: dgrd.Columns(i).Visible = False Note: i represents column index
Regards, Vipul Mehta Sr. Software Engineer Accenture Services Pvt Ltd
Thanks Actually now how i solved is i took three data grid and made it visible according to my need, any way ur solution is smarter. Thanks a lot
Prakash Mishra(Banglore,India)
-
Thanks Actually now how i solved is i took three data grid and made it visible according to my need, any way ur solution is smarter. Thanks a lot
Prakash Mishra(Banglore,India)
Ur solution will work fine but this will make ur page quite bulky & also will increase the redundancy of ur logic. From maintainance perspective ur solution might proved to be bit dicy.
Regards, Vipul Mehta Sr. Software Engineer Accenture Services Pvt Ltd