Need to manipilate datagrid values before being displayed.

jsandoval

Active member
Joined
Dec 27, 2004
Messages
28
Location
Denver
Programming Experience
10+
I have a datagrid of vehicle mkae, model and options. The options column for certain models be the same text as the model. I want to assign blanks to the options value when it is the same as the model value.

Does anyone have any sugestions of how I might go about achieving this?
 
DataGrid Help As Well

I have a datagrid, Now How Do I get the paging to work I'm reading it in from a database, I've set the default property on the paging, But no numbers or buttons will show up to change pages, ANy Help Here's what I have to show you what kind of code i've implemented

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Dim conn As New SqlConnection(ConfigurationSettings.AppSettings("strDBConn"))

Try

conn.Open()

Dim cmd As New SqlCommand("tenrows", conn)

ddpairs.DataSource = cmd.ExecuteReader()

ddpairs.DataBind()

Catch ex As Exception

lblerr.Text = ex.Message

End Try

conn.Close()

End Sub



Private Sub btnnext_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

End Sub

Private Sub NavigationButtonClicked(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnprevious.Click



End Sub





Private Sub ddpairs_PageIndexChanged(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridPageChangedEventArgs) Handles ddpairs.PageIndexChanged

ddpairs.CurrentPageIndex = e.NewPageIndex

ddpairs.DataBind()



End Sub



Private Sub btnback_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

End Sub

Private Sub ddpairs_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ddpairs.SelectedIndexChanged

End Sub

Private Sub tblpairs_DataBinding(ByVal sender As System.Object, ByVal e As System.EventArgs)

End Sub

Private Sub tblpairs_PreRender(ByVal sender As System.Object, ByVal e As System.EventArgs)

End Sub

End
Class

 
Back
Top