|
Hi again,
It is working on simple pages but it is not working when I use master pages.Seems to be a problem.Please help me out.
I tried it without master pages and it was working fine,but when I am implementing it using master pages,it isnt working.
|
|
|
|
|
Good Afternoon guys
Is it Possible in a Gridview to Disable a Cell like a button ?
I have been Googling for this but no luck
Thank you
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za
|
|
|
|
|
What is the content of that cell?
|
|
|
|
|
Its a String Value
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za
|
|
|
|
|
Vuyiswa Maseko wrote: Its a String Value
Well, then what is there to disable? All you can do is change the color so that it looks like disabled.
|
|
|
|
|
The property exists, so the short answer is yes.
|
|
|
|
|
Can you give me an example?
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za
|
|
|
|
|
For example: In the RowDataBound Event of the Gridview, e.Row.Cells(2).Enabled = False disables the cell in the third column of the GridView.
Just add your logics...
|
|
|
|
|
Its an Honor to be helped by you guys. Thank you for being there. i think am at the end of my Problem, This is the method that setup the Grid.
protected void setupGrid()
{
if (((int)Session["numCycles"]) > 0)
{
UltraWebGrid cycleGrid = ultraGridCycles;
int numCols = 0;
int numRows = 0;
if (((int)Session["numCycles"]) >= 13)
{
numCols = 13;
}
else
{
numCols = ((int)Session["numCycles"]);
}
if ((((int)Session["numCycles"]) % 13) == 0)
{
numRows = (int)(((int)Session["numCycles"]) / 13);
}
else
{
numRows = (int)((((int)Session["numCycles"]) / 13) + 1);
}
cycleGrid.Height = Unit.Pixel(20 * numRows + 6);
for (int i = 0; i < numCols; i++)
{
UltraGridColumn col = new UltraGridColumn(true);
col.Width = Unit.Pixel(10);
col.Key = i.ToString();
cycleGrid.Columns.Add(col);
}
for (int i = 1; i <= numRows; i++)
{
UltraGridRow row = new UltraGridRow(true);
row.Key = i.ToString();
for (int j = 1; j <= numCols; j++)
{
UltraGridCell cell = new UltraGridCell(true);
cell.Style.HorizontalAlign = HorizontalAlign.Center;
cell.Style.Padding.Left = 0;
cell.Style.Padding.Top = 0;
cell.Style.Padding.Bottom = 0;
cell.Style.Padding.Right = 0;
cell.Value = (int)((13 * (i - 1)) + j);
if (((13 * (i - 1)) + j) > ((int)Session["numCycles"]))
{
cell.Value = null;
}
UltraGridCell Cell = new UltraGridCell(true);
row.Cells.Add(cell);
ArrayList arr = (ArrayList)Disable_Grid();
foreach (String s in arr)
{
row.Cells.RemoveAt(Convert.ToInt32(s));
}
}
}
}
}
Now the bolded Code is the One that will remove the Cell when it matches the variable "s". So now line
row.Cells.RemoveAt(Convert.ToInt32(s));
remove All the the cells. At the End the Variable "s" will contain a int value of 4, but it will not remove only it, but it will remove other 3 Cells.
I want to remove only the cell with a value "4"
Thank you
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za
|
|
|
|
|
Good Day friends
I would like to take this chance and thank you guys for helping me resolve the Current Problem. I was using Infragestic Controls and had a hard time using them. But with people like you online I made it. You are stars and you deserve ratings.
Thank you,
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za
|
|
|
|
|
How IsPostBack is working. the following is my code in Page_Load event. every time when i click on this page link or when i refresh this page it is calling bindData(); function.
if (!IsPostBack)
{
bindData();
}
|
|
|
|
|
IsPostBack will return TRUE when the page has posted back. It will return FALSE if it is a normal refresh.
|
|
|
|
|
so will it work always. my problem is , all the pages i have home page link. when i click the Home Page Link from the other pages also again it is calling the function written inside if(!IsPostBack).
The Page_Load event function is in Home Page. How can i avoid always calling the function.
|
|
|
|
|
Robymon wrote: Home Page Link from the other pages also again it is calling the function written inside if(!IsPostBack).
It will call as it is not doing any postback.
Robymon wrote: The Page_Load event function is in Home Page. How can i avoid always calling the function.
I am not clear with that. Do you think the home page details will persist even if you move to other pages?
|
|
|
|
|
Data is changing while refreshing or clicking this link. i don't want to change the data once the page is loaded. it should change only next time open the website.
|
|
|
|
|
Robymon wrote: i don't want to change the data once the page is loaded. it should change only next time open the website.
It looks like you are not clear with the web concepts. Web is stateless. So each time a page is requested, it has to load completely. You can use caching to persist the data which you don't want to load often.
|
|
|
|
|
Robymon wrote: . i don't want to change the data once the page is loaded
try UpdatePanel
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
im not sure if i got what u mean but perhaps you should move the databind function to a diffrent event ? not the Page_Load event ?
|
|
|
|
|
How i design a good master page with images in header, so that it run on every browser, i.e. IE, Mozzila, im designing it using table.in asp.net 2005. but i run it, it shows diffence bt IE and Mozzila. means images gets displaced....plz help me out
|
|
|
|
|
Use the W3C[^] standards while designing.
|
|
|
|
|
How to browse folder not file using vb.net?
|
|
|
|
|
You can't browse folder using ASP.NET.
|
|
|
|
|
JavaScript will help you if you gonna browse folder at client side
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Hi There,
Is it possible to write a query on Datatable ?
|
|
|
|
|