Hi All,
Is there any way to to hide repeated columns in ultrawebgrid.
Hi,
If you're asking how to clear out the cells when they are duplicates, you might be interested in the InitializeRow event of the grid. You could check in that event to see when duplicates occur and clear out the cells before they are initialized in the grid. If you're doing this on a few fields, it will get messy either storing the previous values or looping back to find them.
Ed
Hi Thanks for your responses..i figured it out by string comparison .
Dim da As New OracleDataAdapter(sString, conn) da.Fill(ds) UltraWebGrid1.DataSource = ds
Dim str1 As String Dim str2 As String Dim i As Integer
str1 = CStr(ds.Tables(0).Rows(i)(0)) Dim j As Integer For j = i + 1 To ds.Tables(0).Rows.Count - 1 str2 = CStr(ds.Tables(0).Rows(j)(0)) If str2 = str1 Then ds.Tables(0).Rows(j)(0) = " " ds.Tables(0).Rows(j)(1) = " "
Else GoTo Exitthisloop End If
NextExitthisloop: i = j - 1 Next
Thanks.