Click here to Skip to main content
15,914,416 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: asp.net Pin
Sandeep Mewara7-Jul-12 7:59
mveSandeep Mewara7-Jul-12 7:59 
AnswerRe: asp.net Pin
AmitGajjar10-Jul-12 22:40
professionalAmitGajjar10-Jul-12 22:40 
GeneralRe: asp.net Pin
zhxhdean11-Jul-12 19:31
zhxhdean11-Jul-12 19:31 
QuestionGroupvalidation in asp.net Pin
deeptul7-Jul-12 1:32
deeptul7-Jul-12 1:32 
AnswerRe: Groupvalidation in asp.net Pin
Sandeep Mewara7-Jul-12 8:15
mveSandeep Mewara7-Jul-12 8:15 
GeneralRe: Groupvalidation in asp.net Pin
deeptul11-Jul-12 6:56
deeptul11-Jul-12 6:56 
AnswerRe: Groupvalidation in asp.net Pin
Sandeep Mewara11-Jul-12 7:18
mveSandeep Mewara11-Jul-12 7:18 
QuestionC# web app -not see variable values Pin
classy_dog6-Jul-12 21:19
classy_dog6-Jul-12 21:19 
AnswerRe: C# web app -not see variable values Pin
Sandeep Mewara7-Jul-12 8:05
mveSandeep Mewara7-Jul-12 8:05 
Questionasp.net file name problem Pin
rachel_m6-Jul-12 6:28
rachel_m6-Jul-12 6:28 
AnswerRe: asp.net file name problem Pin
Richard MacCutchan6-Jul-12 21:24
mveRichard MacCutchan6-Jul-12 21:24 
GeneralRe: asp.net file name problem Pin
rachel_m7-Jul-12 10:37
rachel_m7-Jul-12 10:37 
GeneralRe: asp.net file name problem Pin
Richard MacCutchan7-Jul-12 23:07
mveRichard MacCutchan7-Jul-12 23:07 
Generalweb app default connection string problem Pin
dcof6-Jul-12 4:47
dcof6-Jul-12 4:47 
QuestionNothing happens when create file with HTMLReportEngine Pin
Monetto6-Jul-12 4:25
Monetto6-Jul-12 4:25 
AnswerRe: Nothing happens when create file with HTMLReportEngine Pin
Sandeep Mewara7-Jul-12 8:36
mveSandeep Mewara7-Jul-12 8:36 
QuestionCaptcha Pin
Elham M6-Jul-12 1:58
Elham M6-Jul-12 1:58 
AnswerRe: Captcha Pin
Sandeep Mewara6-Jul-12 3:49
mveSandeep Mewara6-Jul-12 3:49 
GeneralRe: Captcha Pin
Elham M6-Jul-12 9:09
Elham M6-Jul-12 9:09 
GeneralRe: Captcha Pin
Sandeep Mewara6-Jul-12 22:55
mveSandeep Mewara6-Jul-12 22:55 
QuestionHow to Merge a particular column in gridview using asp.net ? Pin
sharmila rao6-Jul-12 1:35
sharmila rao6-Jul-12 1:35 
AnswerRe: How to Merge a particular column in gridview using asp.net ? Pin
Hum Dum6-Jul-12 1:54
Hum Dum6-Jul-12 1:54 
GeneralRe: How to Merge a particular column in gridview using asp.net ? Pin
sharmila rao6-Jul-12 2:03
sharmila rao6-Jul-12 2:03 
Sorry Let me clearly ask the question again. I am binding the data from stored procedure. I must not touch the SP now. I just need to write a code in rowbound function for merging. I find only the below code in all blogs. It is merging rows of all columns in grid, i need it for only 1 column.

for (int rowIndex = REGrid.Rows.Count - 2; rowIndex >= 0; rowIndex--)
{
GridViewRow gvRow = REGrid.Rows[rowIndex];
GridViewRow gvPreviousRow = REGrid.Rows[rowIndex + 1];
for (int cellCount = 0; cellCount < gvRow.Cells.Count; cellCount++)
{
if (gvRow.Cells[cellCount].Text == gvPreviousRow.Cells[cellCount].Text)
{
if (gvPreviousRow.Cells[cellCount].RowSpan < 2)
{
gvRow.Cells[cellCount].RowSpan = 2;
}
else
{
gvRow.Cells[cellCount].RowSpan = gvPreviousRow.Cells[cellCount].RowSpan + 1;
}
gvPreviousRow.Cells[cellCount].Visible = false;
}
}
}

This is the code. Could you please help me in this, how to re frame this loop for just 1 column. Lets assume for the first column in grid. thanks in advance
Thanks,
Sharmi

AnswerRe: How to Merge a particular column in gridview using asp.net ? Pin
Elham M6-Jul-12 2:11
Elham M6-Jul-12 2:11 
GeneralRe: How to Merge a particular column in gridview using asp.net ? Pin
sharmila rao6-Jul-12 2:24
sharmila rao6-Jul-12 2:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.