Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
650
Problem when trying to Disable UltraGrid cell
posted

Good Afternoon All

 I have a Following code that i want to use to Disable a Cell in a Ultragrid based on the Arraylist value.  

 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 String
Final_Pattern;

try

{

//Create an Instance of a BLL Class

BLL.BLL obj = new BLL.BLL();

//Save the Selected Value in the Session Variable

String Subject_Pattern = (String)Session["SelectedSubjectID"];

//Get the Final Pattern and Store it in a Local Variable

Final_Pattern = obj.Disable_Grid_Contents(Subject_Pattern);

//Create a Array and Split the Contents of the String with an empty Space and Assign it to the Array

String[ strs = Final_Pattern.Split(' ');

//Create an Arraylist onject

ArrayList strsList = new ArrayList();

//Add the Contents of the String StrS to the Arraylist

foreach (string s in strs)

{

strsList.Add(s);

}

/* For each Value that appears in this Array list

* Disable the Cells that have the Value*/

foreach (string val in strsList)

{

if (val != null && val != string.Empty)

{

UltraGridRow row = new UltraGridRow();

row.Cells.....

}

}

}

catch (SqlException)

{

throw;

}

 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

I cant use the Enabled and the Visible Property.

 Thanks