Thursday, July 21, 2011

Some Useful Syntex of Asp.Net.........

No. 1 : For Getting  GridView Row  in any event of GridView and Get RowIndex.......


 GridViewRow grrow = (GridViewRow)(((Control)e.CommandSource).NamingContainer);
 ViewState["RowIndex"] = grrow.RowIndex;

No. 2 : For Filtering Perticuler Row From Asp.Net DataTable........

DataRow[] = .Select("=" + + ""); for example : DataRow[] dr= dtGetempdata.Select("EmpName=" + Girish + "");

No comments:

Post a Comment