473,387 Members | 1,721 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

About DataGrid

4
Have a simple question here XD hope can get some answer =)

i used dataset to read data from XML

dim ds as new dataset

'DataGrid_DB is my DataGrid use in this form
ds.ReadXml(Browser_Text.Text, XmlReadMode.Auto)
DataGrid_DB.SetDataBinding(ds, "CD")

But now have a problem, by using DataGrid_DB.SetDataBinding(ds, "CD")
after all data show in datagrid, but i cant read the header...

what should i do to read the header?

Thx and have a nice day
Sep 20 '07 #1
1 960
Is the HeaderRow null? I had a similar issue in a DataGrid, and it goes away if you create an event handler for DataBound; no code necessary, it just has to be there.

Also, HeaderRow is not created if there isn't any data in the grid, so best check it against null anyway.
Sep 20 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Irakli Lomidze | last post by:
Dear Sirs. I Have Question About Calculed Fields. i have 5 Fields From Database Query And Want add 6-th Field6 that is Calcued Based on that 5 fields. but it calculation reque call function...
4
by: Gidi | last post by:
hello i have a DataGrid Table and i want to select a row by Clicking the mouse after i tried few times, i understood the the only event the the datagird respones to is the current_cell_chang and...
1
by: Gidi | last post by:
hello i have a DataGrid table and by the help of Adnan, here in the forum, i have the Mouse_up Event that by Clicking a row on the dataGrid it's selectes the whole ro the problem is when i'm...
0
by: Jason | last post by:
I am pretty new to C# so bare with me... The design of my website utilizes tables on every page that look almost identical, save the data they are displaying. I have written the code to create...
0
by: smith.felicity | last post by:
I have two questions about using the data grid and c# If one of my columns returned in my dataset is null I want another column to be used in the displayed column. So this is what my datagrid...
2
by: Alpha | last post by:
Hi, Where is a good place on the internet for me to learn about how to use the datagrid. My grid's datasource is a dataset with one table from a DB. I need to know how to perform Edit, Delete and...
1
by: Sky | last post by:
Although I've been using C# for the last month or so, and accepting out of blind faith the ViewState, I do have some nagging questions about it... can you help verify the following statements? ...
1
by: Nikhil Patel | last post by:
Hi all, What is the best way to allow the administrator of the application to select which columns are displayed in a Databound grid in an aspx form. I was thinking of creating a form and display...
3
by: Bob Taylor | last post by:
Hi everybody, I have a question about the datagrid. I have a datagrid and I have set the datasource property to equal a dataset. the datagrid fills up with the columns (prodno, description,...
1
by: PiPOW | last post by:
Hi. I have a question. I am developing an application and I have to choose the most suitable control to show records from some database queries, with freedom in customizing control layout and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.