SharePoint - How to hide a column in datagrid based on another column in the same d

Asked By dinesh
18-Apr-11 01:24 AM
Hi friends,

I have two columns by name Status and Closing date. If Status is active then only closing date column should be invisible or else if status is closed then the closing date column should be visible. How to do this using c#
  Anoop S replied to dinesh
18-Apr-11 01:46 AM
Use
MyGridView.Columns[0].Visible = true;

refer this for example
http://csharpdotnetfreak.blogspot.com/2008/12/hide-gridview-columns-in-normal-mode.html
  Anoop S replied to dinesh
18-Apr-11 01:47 AM
for hide
MyGridView.Columns[0].Visible = false;
Create New Account
help
Tracking Project Status SharePoint Hello, I have an excel spreadsheet which has serveral columns. The columns include the following (project name, % complete, estimated hours, hours used to date, date started, status details, etc.). With this spreadsheet, I am using over 20 columns to keep track of the data. I need to use SharePoint to keep track of the status of several projects. Could you tell me the best way to use SharePoint to do this? I heard that you could create a list to do this however
Calculated field - size restriction? SharePoint I'm having problems with a calculated field in SharePoint. I can get the following code to work: = IF([Current Status] = "Gate I", IF([G1-Date]<> "", IF(([G1-Date]-Today)> 0, "Good", IF(([G1-Date]-Today)> -7, "Fair", IF(([G1-Date]-Today)<-7, "Critical"))), "Unknown"), IF([Current Status] = "Gate II", IF([G2-Date]<> "", IF(([G2-Date]-Today)> 0, "Good", IF(([G2-Date]-Today
Actual Start / End" Task Dates based "Project Status" SharePoint I have two columns for each project task. "Actual Start Date" and I have another column, "Project Status" which has the values: Not Started, In Progress, Completed. When the "Project Status" changes from "Not Started" to "In Progress", I'd like the "Actual Start Date" to equal to[today's date]. When the "Project Status" changes from "In Progress" to "Completed", I'd like the "Actual End Date" to equal
Due Date notifications SharePoint If you have a due date set on a task list or an event date on a calendar, is there a way to to have SharePoint alert you of that impending date? SharePoint Portal Server Discussions SharePoint (1) You could build a custom workflow with Sharepoint Designer. Serge Hi Jo, If you
since an issue item was created. I created a new calculated column with [created] and [status date] (another custom field). Unfortunately, I have to update the [status date] field for each open issue item each Monday morning. I tried [today] instead of [status date], but no success. Has anyone created a dynamic calculated column formula that subtracts one fixed date [created] from a dynamic date [today]? - - Matt in Flower Mound Texas Project Server Discussions Report (1) Piazza (1) Monday (1