Click here to Skip to main content
15,884,388 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
GeneralRe: How to Merge a particular column in gridview using asp.net ? Pin
Elham M6-Jul-12 8:55
Elham M6-Jul-12 8:55 
AnswerRe: How to Merge a particular column in gridview using asp.net ? Pin
sharmila rao6-Jul-12 2:44
sharmila rao6-Jul-12 2:44 
GeneralRe: How to Merge a particular column in gridview using asp.net ? Pin
sharmila rao8-Jul-12 22:48
sharmila rao8-Jul-12 22:48 
AnswerRe: How to Merge a particular column in gridview using asp.net ? Pin
ashjassi17-Aug-12 3:02
ashjassi17-Aug-12 3:02 
QuestionAdding kooboo to existing Mvc functional website Pin
Mihir Naik5-Jul-12 20:50
Mihir Naik5-Jul-12 20:50 
QuestionExport data to Excel Pin
Member 91698875-Jul-12 17:09
Member 91698875-Jul-12 17:09 
AnswerRe: Export data to Excel Pin
Abhinav S5-Jul-12 17:18
Abhinav S5-Jul-12 17:18 
GeneralRe: Export data to Excel Pin
Member 91698875-Jul-12 19:35
Member 91698875-Jul-12 19:35 
GeneralRe: Export data to Excel Pin
Abhinav S5-Jul-12 19:37
Abhinav S5-Jul-12 19:37 
Generalweb app dll files Pin
sc steinhayse5-Jul-12 6:52
sc steinhayse5-Jul-12 6:52 
AnswerRe: web app dll files Pin
Abhinav S5-Jul-12 17:19
Abhinav S5-Jul-12 17:19 
GeneralRe: web app dll files Pin
sc steinhayse6-Jul-12 3:19
sc steinhayse6-Jul-12 3:19 
QuestionDatalist Background Pin
Deepak-Tamil4-Jul-12 20:42
Deepak-Tamil4-Jul-12 20:42 
AnswerRe: Datalist Background Pin
Deepak-Tamil5-Jul-12 4:06
Deepak-Tamil5-Jul-12 4:06 
Generalasp.net 2010 code compare Pin
dcof3-Jul-12 10:56
dcof3-Jul-12 10:56 

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.