Modify your data source for GridView before assigning to it, and use ColumnSpan in RowCreated or RowDataBound event if underlying DataItem is blank. To modify DataSource, just loop through the data source and check current data row with previous value and
if both Date and Dc No matches then modify that data source row with blank value.
And further as I said, use ColumnSpan in RowCreated or RowDataBound event if underlying DataItem is blank.
hope that helps./.
नमस्ते,
[KaushaL] BlogTwitter [MS MVP 2008 & 2009] [MCC 2011] [MVP Reconnect 2017]
Don't forget to click "Mark as Answer" on the post that helped you
Modify your data source for GridView before assigning to it, and use ColumnSpan in RowCreated or RowDataBound event if underlying DataItem is blank. To modify DataSource, just loop through the data source and check current data row with previous value and
if both Date and Dc No matches then modify that data source row with blank value.
And further as I said, use ColumnSpan in RowCreated or RowDataBound event if underlying DataItem is blank.
Member
399 Points
1101 Posts
Avoid Repeat In Gridview Row
Apr 02, 2017 11:56 AM|asp.ambur|LINK
Hello
This is my gridivew look like it has some 10 column for example i have taken two columns first and second
but i want like this below
All-Star
31362 Points
7055 Posts
Re: Avoid Repeat In Gridview Row
Apr 02, 2017 01:28 PM|kaushalparik27|LINK
Modify your data source for GridView before assigning to it, and use ColumnSpan in RowCreated or RowDataBound event if underlying DataItem is blank. To modify DataSource, just loop through the data source and check current data row with previous value and if both Date and Dc No matches then modify that data source row with blank value.
And further as I said, use ColumnSpan in RowCreated or RowDataBound event if underlying DataItem is blank.
hope that helps./.
[KaushaL] Blog Twitter [MS MVP 2008 & 2009] [MCC 2011] [MVP Reconnect 2017]
Don't forget to click "Mark as Answer" on the post that helped you
Member
399 Points
1101 Posts
Re: Avoid Repeat In Gridview Row
Apr 02, 2017 01:38 PM|asp.ambur|LINK
Member
399 Points
1101 Posts
Re: Avoid Repeat In Gridview Row
Apr 02, 2017 01:50 PM|asp.ambur|LINK
okay i will try
All-Star
31362 Points
7055 Posts
Re: Avoid Repeat In Gridview Row
Apr 02, 2017 01:52 PM|kaushalparik27|LINK
[KaushaL] Blog Twitter [MS MVP 2008 & 2009] [MCC 2011] [MVP Reconnect 2017]
Don't forget to click "Mark as Answer" on the post that helped you