Hi, I load the datagrid based on a condition. If i load the datagrid by the first condition then i need to visible false some TemplateField in grid. Can i achieve this, any solution available for this. Thanks in Advance.
Hi, I load the datagrid based on a condition. If i load the datagrid by the first condition then i need to visible false some TemplateField in grid. Can i achieve this, any solution available for this. Thanks in Advance.
You can use onitemdatabound event of the datagrid for this purpose. In that event based on your criteria you can show or hide your columns. Even directly also you can hide the columns by dg.columns[0].visible = true/false.