Hello All,
I am trying to get some data in DataGrid from XML files. I am reading that XML data and putting that data in DataView and giving that DataView as DataSource to DataGrid.
As i have a schema for my XML, i dont even give HeaderName as system automatically takes HeaderText as whatever is in XML Tags.
Now my problem is Pagination alignment, i have pagination on my DataGrid but even setting
doesn't bring pagination to extreme right of datagrid, rather it brings pagination on right of first column of datagrid(my datagrid has 9 columns) see attached pic
Header of datagrid comes of whatever text the tags have in xml file or i can actually use
and that works.
can anyone point me in right direction on how can i get pagination numbers to appear at extreme right of DataGrid rather than right of first column.
TIA
Jay
I am trying to get some data in DataGrid from XML files. I am reading that XML data and putting that data in DataView and giving that DataView as DataSource to DataGrid.
As i have a schema for my XML, i dont even give HeaderName as system automatically takes HeaderText as whatever is in XML Tags.
Now my problem is Pagination alignment, i have pagination on my DataGrid but even setting
Code:
<PagerStyle HorizontalAlign="Right" Mode="NumericPages"/>
Code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 'Bind data to Grid BindGrid() End Sub
Code:
Protected Sub BindGrid() 'Data in DataGrid Dim dataUrl As String = "abc.xml" Dim schemaUrl As String = "abc.xsd" 'Declare dataset Dim ds As New DataSet() Dim dt As DataTable Dim dv As New DataView() 'Read the xml schema ds.ReadXmlSchema(Server.MapPath(schemaUrl)) Try 'read XML file recieved from Brooms ds.ReadXml(Server.MapPath(dataUrl)) dv = New DataView(ds.Tables(0)) dt = dv.Table Catch 'If some error occur, pass in required parameter. DiplayAndHide(True, False, "Error occured") End Try If (dt.Rows.Count > 0) Then Test.DataSource = dv Test.DataBind() End If
Code:
dt.Column(x).CoumnName = "anything"
can anyone point me in right direction on how can i get pagination numbers to appear at extreme right of DataGrid rather than right of first column.
TIA
Jay
Comment