codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Gidview row disable  smvcoder at 14:36 on Wednesday, February 08, 2012
 

Hello....

I am using the following code..

protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
if (e.Row.Cells[3].Text == "scrapped")
{
e.Row.Visible=false;
}
}
}

Here the e.Row.Cells[3].Text returns combined texts of all cells in that particular column. For example if column 'status' contains In Progress, Waiting,Scrapped etc the e.Row.Cells[3] returns 'In ProgressWaitingScrapped'. What i need is the 'i'th rows cell[3] value and compare that to string 'Scrapped' and the disable 'i'th row completely which contains the value 'Scrapped'. Can someone help me with this.
Many Thanks....









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Gidview row disable
•  Ììºò¤Î‰ä»¯
•  Charl Schwartzel
•  "Enhance Golfing Brief Online game Directions
•  calling C# from javascript
•  Re: C++ Beginner question
•  Re: function within loop problem
•  moncler outlet
•  Re: Display swf file in pdf


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2012